pub type Image = ImageBrush<ImageSource>;Expand description
An image.
Aliased Type§
pub struct Image {
pub image: ImageSource,
pub sampler: ImageSampler,
}Fields§
§image: ImageSourceThe image to render.
sampler: ImageSamplerParameters which specify how to sample from the image during rendering.
Trait Implementations§
Source§impl EncodeExt for Image
impl EncodeExt for Image
Source§fn encode_into(
&self,
paints: &mut Vec<EncodedPaint>,
transform: Affine,
) -> Paint
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.