pub struct IccColor {
pub components: Vec<f64>,
pub color_space: IccColorSpace,
}Expand description
Native ICCBased fill/stroke color info for PDF output.
Preserves the raw component values from the source sc/scn
operator plus the ICC profile bytes, so a PDF reader can capture the
exact ICCBased paint at parse time and the PDF writer can emit a
faithful /CSn cs + c1 c2 c3 scn round-trip — independent of the
DeviceColor ICC-converted RGB that’s used for rasterizing.
Fields§
§components: Vec<f64>Raw component values from sc/scn (length matches color_space.n).
color_space: IccColorSpaceThe ICC color space definition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IccColor
impl RefUnwindSafe for IccColor
impl Send for IccColor
impl Sync for IccColor
impl Unpin for IccColor
impl UnsafeUnpin for IccColor
impl UnwindSafe for IccColor
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