pub struct ImageRef {
pub frame: Box<VideoFrame>,
pub bounds: Rect,
pub transform: Transform2D,
}Expand description
An embedded raster image painted into vector space.
bounds is the axis-aligned rectangle (in the local user space,
before transform) that the image is painted into; SVG <image>
x/y/width/height and PDF Do with a matrix-pre-positioned
Image XObject both reduce to this shape.
Fields§
§frame: Box<VideoFrame>Embedded raster payload. Boxed so a Node::Image variant
doesn’t bloat every other Node case.
bounds: Rect§transform: Transform2DTrait Implementations§
Auto Trait Implementations§
impl Freeze for ImageRef
impl RefUnwindSafe for ImageRef
impl Send for ImageRef
impl Sync for ImageRef
impl Unpin for ImageRef
impl UnsafeUnpin for ImageRef
impl UnwindSafe for ImageRef
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