pub struct ImageInfo {
pub width: u32,
pub height: u32,
pub bits_per_component: u32,
pub color_space: Vec<u8>,
pub num_components: u32,
pub filter: Option<Vec<u8>>,
pub is_mask: bool,
pub has_smask: bool,
}Expand description
Information about a PDF image XObject.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
bits_per_component: u32Bits per component (1, 2, 4, 8, 16).
color_space: Vec<u8>Color space name.
num_components: u32Number of color components.
filter: Option<Vec<u8>>Filter used to encode the image data.
is_mask: boolWhether this is an image mask.
has_smask: boolWhether there is a soft mask.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnsafeUnpin for ImageInfo
impl UnwindSafe for ImageInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more