pub struct EncodedImage {
pub source: ImageSource,
pub sampler: ImageSampler,
pub has_opacities: bool,
pub transform: Affine,
pub x_advance: Vec2,
pub y_advance: Vec2,
}Expand description
An encoded image.
Fields§
§source: ImageSourceThe underlying pixmap of the image.
sampler: ImageSamplerSampler
has_opacities: boolWhether the image has opacities.
transform: AffineA transform to apply to the image.
x_advance: Vec2The advance in image coordinates for one step in the x direction.
y_advance: Vec2The advance in image coordinates for one step in the y direction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin for EncodedImage
impl UnwindSafe for EncodedImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more