pub fn from_image(
        image: &Image,
        x: f32,
        y: f32,
        w: f32,
        h: f32,
        angle: f32,
        alpha: f32,
    ) -> Paint {
        Paint(unsafe { sys::nvgImagePattern(image.ctx, x, y, w, h, angle, image.handle, alpha) })
    }
/// Creates and returns an image pattern. Parameters (`x`, `y`) specify the left-top location of the image pattern,
/// (`w`, `h`) is the size of the image, `angle` is the rotation around the top-left corner, and `image` is the image
/// to render.
Creates and returns an image pattern.
Creates and returns an image pattern .
pub fn from_image(
        image: &Image,
        x: f32,
        y: f32,
        w: f32,
        h: f32,
        angle: f32,
        alpha: f32,
    ) -> Paint {
        Paint(unsafe { sys::nvgImagePattern(image.ctx, x, y, w, h, angle, image.handle, alpha) })
    }
pub fn from_image ( image : & Image , x : f32 , y : f32 , w : f32 , h : f32 , angle : f32 , alpha : f32 , ) -> Paint { Paint ( unsafe { sys :: nvgImagePattern ( image . ctx , x , y , w , h , angle , image . handle , alpha ) } ) }
Creates and returns an image pattern.
Creates and returns an image pattern .
image
&Image
x
f32
y
f32
w
f32
h
f32
angle
f32
alpha
f32