pub struct ImageEvent {
pub name: String,
pub ctm: [f64; 6],
pub width: u32,
pub height: u32,
pub colorspace: Option<String>,
pub bits_per_component: Option<u32>,
}Expand description
Information about a placed image.
Produced by the interpreter when a Do operator references an Image XObject. The CTM determines the image’s position and size on the page.
Fields§
§name: StringImage XObject name reference (e.g., “Im0”).
ctm: [f64; 6]CTM at the time of image placement (determines position and size).
width: u32Image width in pixels.
height: u32Image height in pixels.
colorspace: Option<String>Color space name (e.g., “DeviceRGB”, “DeviceGray”).
bits_per_component: Option<u32>Bits per component.
Trait Implementations§
Source§impl Clone for ImageEvent
impl Clone for ImageEvent
Source§fn clone(&self) -> ImageEvent
fn clone(&self) -> ImageEvent
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 ImageEvent
impl RefUnwindSafe for ImageEvent
impl Send for ImageEvent
impl Sync for ImageEvent
impl Unpin for ImageEvent
impl UnsafeUnpin for ImageEvent
impl UnwindSafe for ImageEvent
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