pub enum ImagePixelData {
Jpeg {
data: Vec<u8>,
color_space: JpegColorSpace,
},
Decoded {
rgb: Vec<u8>,
alpha: Option<Vec<u8>>,
},
}Expand description
The pixel data in a format the PDF serializer can consume directly.
Variants§
Jpeg
Raw JPEG bytes — embed directly with DCTDecode.
Decoded
Decoded RGB pixels + optional alpha channel.
Trait Implementations§
Source§impl Clone for ImagePixelData
impl Clone for ImagePixelData
Source§fn clone(&self) -> ImagePixelData
fn clone(&self) -> ImagePixelData
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 ImagePixelData
impl RefUnwindSafe for ImagePixelData
impl Send for ImagePixelData
impl Sync for ImagePixelData
impl Unpin for ImagePixelData
impl UnsafeUnpin for ImagePixelData
impl UnwindSafe for ImagePixelData
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