pub struct ImageDict {Show 13 fields
pub width: u32,
pub height: u32,
pub color_space: Option<ColorSpace>,
pub bits_per_component: Option<i32>,
pub intent: Option<RenderingIntent>,
pub image_mask: bool,
pub mask: Option<Primitive>,
pub decode: Option<Vec<f32>>,
pub interpolate: bool,
pub struct_parent: Option<i32>,
pub id: Option<PdfString>,
pub smask: Option<Ref<Stream<ImageDict>>>,
pub other: Dictionary,
}
Expand description
A variant of XObject
Fields§
§width: u32
§height: u32
§color_space: Option<ColorSpace>
§bits_per_component: Option<i32>
§intent: Option<RenderingIntent>
§image_mask: bool
§mask: Option<Primitive>
§decode: Option<Vec<f32>>
Describes how to map image samples into the range of values appropriate for the image’s color space.
If image_mask
: either [0 1] or [1 0]. Else, the length must be twice the number of color
components required by color_space
(key ColorSpace)
interpolate: bool
§struct_parent: Option<i32>
The integer key of the image’s entry in the structural parent tree
id: Option<PdfString>
§smask: Option<Ref<Stream<ImageDict>>>
§other: Dictionary
Trait Implementations§
source§impl DataSize for ImageDict
impl DataSize for ImageDict
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 44usize
const STATIC_HEAP_SIZE: usize = 44usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§impl DeepClone for ImageDict
impl DeepClone for ImageDict
fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self>
source§impl ObjectWrite for ImageDict
impl ObjectWrite for ImageDict
Auto Trait Implementations§
impl RefUnwindSafe for ImageDict
impl Send for ImageDict
impl Sync for ImageDict
impl Unpin for ImageDict
impl UnwindSafe for ImageDict
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