pub struct ImagePlacement {
pub handle: ImageHandle,
pub x_pt: f32,
pub top_from_top_pt: f32,
pub width_pt: f32,
pub height_pt: f32,
}Expand description
One image placement on a page. The PDF backend emits this as a
q ... cm /Im<id> Do Q block in the content stream.
Fields§
§handle: ImageHandle§x_pt: f32X coordinate of the image’s left edge, measured from the page’s left edge in points.
top_from_top_pt: f32Y coordinate of the image’s top edge, measured from the page’s
top edge in points. The PDF backend flips to bottom-origin
once when emitting (same convention as TextRun).
width_pt: f32Rendered width in points.
height_pt: f32Rendered height in points.
Trait Implementations§
Source§impl Clone for ImagePlacement
impl Clone for ImagePlacement
Source§fn clone(&self) -> ImagePlacement
fn clone(&self) -> ImagePlacement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImagePlacement
impl RefUnwindSafe for ImagePlacement
impl Send for ImagePlacement
impl Sync for ImagePlacement
impl Unpin for ImagePlacement
impl UnsafeUnpin for ImagePlacement
impl UnwindSafe for ImagePlacement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.