Image

Type Alias Image 

Source
pub type Image = ImageBrush<ImageSource>;
Expand description

An image.

Aliased Type§

pub struct Image {
    pub image: ImageSource,
    pub sampler: ImageSampler,
}

Fields§

§image: ImageSource

The image to render.

§sampler: ImageSampler

Parameters which specify how to sample from the image during rendering.

Trait Implementations§

Source§

impl EncodeExt for Image

Source§

fn encode_into( &self, paints: &mut Vec<EncodedPaint>, transform: Affine, ) -> Paint

Encode the gradient and push it into a vector of encoded paints, returning the corresponding paint in the process. This will also validate the gradient.
Source§

impl Sealed for Image