pub struct EncodedImage {
pub source: ImageSource,
pub extends: (Extend, Extend),
pub quality: ImageQuality,
pub has_opacities: bool,
pub transform: Affine,
pub x_advance: Vec2,
pub y_advance: Vec2,
}
Expand description
An encoded image.
Fields§
§source: ImageSource
The underlying pixmap of the image.
extends: (Extend, Extend)
The extends in the horizontal and vertical direction.
quality: ImageQuality
The rendering quality of the image.
has_opacities: bool
Whether the image has opacities.
transform: Affine
A transform to apply to the image.
x_advance: Vec2
The advance in image coordinates for one step in the x direction.
y_advance: Vec2
The 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