pub struct ImageSpec<'a> {
pub data: &'a [u8],
pub width: Px,
pub height: Px,
pub bits_per_component: u8,
pub color_space: &'a [u8],
pub other: &'a [u8],
}Expand description
PDF image specification - byte data and attributes that describe how image is encoded.
Fields§
§data: &'a [u8]Image data - length is width * height * (bits_per_component/8) * 3 (for RGB).
width: PxWidth
height: PxHeight
bits_per_component: u8Bits per component, usually 8
color_space: &'a [u8]Color space, such as b“/DeviceGray“, b“/DeviceRGB“, b“/DeviceCMYK“
other: &'a [u8]Any other attributes, e.g. b“/Filter/DCT“ for a jpeg
Auto Trait Implementations§
impl<'a> Freeze for ImageSpec<'a>
impl<'a> RefUnwindSafe for ImageSpec<'a>
impl<'a> Send for ImageSpec<'a>
impl<'a> Sync for ImageSpec<'a>
impl<'a> Unpin for ImageSpec<'a>
impl<'a> UnsafeUnpin for ImageSpec<'a>
impl<'a> UnwindSafe for ImageSpec<'a>
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