pub struct Image {
pub data: ImageData,
pub at: Point,
pub width: Option<f32>,
pub height: Option<f32>,
}Expand description
A raster image placed at a point.
No Default: there is no meaningful default for data.
Fields§
§data: ImageDataThe pixels to embed.
at: PointPlacement origin (the box’s bottom-left corner), in page user-space units.
width: Option<f32>Explicit width, in points. None derives it from height (by
aspect) or, with height also None, from the image’s pixel width
at 72 dpi.
height: Option<f32>Explicit height, in points. None derives it from width (by
aspect) or, with width also None, from the image’s pixel height
at 72 dpi.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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