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 Forget for Image
impl Freeze for Image
impl Move for Image
impl RefUnwindSafe for Image
impl Send for Imagewhere
RawVecInner: Send,
impl Sync for Imagewhere
RawVecInner: Sync,
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Imagewhere
RawVecInner: UnwindSafe,
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