Struct printpdf::types::plugins::graphics::icc_profile::IccProfile
source · Expand description
Icc profile
Fields§
§has_alternate: bool
Does the ICC profile have an “Alternate” version or not?
has_range: bool
Does the ICC profile have an “Range” dictionary Really not sure why this is needed, but this is needed on the documents Info dictionary
Implementations§
source§impl IccProfile
impl IccProfile
sourcepub fn new(icc: Vec<u8>, icc_type: IccProfileType) -> Self
pub fn new(icc: Vec<u8>, icc_type: IccProfileType) -> Self
Creates a new Icc Profile
sourcepub fn with_alternate_profile(self, has_alternate: bool) -> Self
pub fn with_alternate_profile(self, has_alternate: bool) -> Self
Does the ICC profile have an alternate version (such as “DeviceCMYk”)?
sourcepub fn with_range(self, has_range: bool) -> Self
pub fn with_range(self, has_range: bool) -> Self
Does the ICC profile have an “Range” dictionary?
Trait Implementations§
source§impl Clone for IccProfile
impl Clone for IccProfile
source§fn clone(&self) -> IccProfile
fn clone(&self) -> IccProfile
Returns a copy 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 more