pub struct Image { /* private fields */ }Expand description
A decoded image: width, height and one colour per pixel, top row first.
Implementations§
Source§impl Image
impl Image
Sourcepub fn from_stream(document: &Document, stream: &Stream) -> Result<Self>
pub fn from_stream(document: &Document, stream: &Stream) -> Result<Self>
Decode an /Image XObject.
Supports 8 bits per component, DeviceGray/DeviceRGB/DeviceCMYK,
Indexed images with those bases, and ICCBased streams by component
count. Anything else is reported rather than guessed.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Image
impl Freeze for Image
impl Move 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