pub struct SpotTintFunction {
pub input_dim: usize,
pub samples_per_dim: usize,
pub cmyk_samples: Arc<Vec<f64>>,
}Expand description
A spot/DeviceN tint transform reduced to a uniform sampled grid.
Carries enough information for the PDF writer to round-trip the source’s
/ColorSpace [/Separation … <tintFunc>] or /ColorSpace [/DeviceN … <tintFunc>]
dictionary as a SampledFunction without losing the spot identity.
Fields§
§input_dim: usizeNumber of input channels (1 for Separation, N for DeviceN).
samples_per_dim: usizeSamples per input dimension. For Separation this is the length of
samples / 4. For DeviceN this is the per-axis count of a grid of
total size samples_per_dim.pow(input_dim).
cmyk_samples: Arc<Vec<f64>>Flat row-major grid of CMYK output samples, length
samples_per_dim^input_dim * 4. The reader builds this by evaluating
the source PDF’s tint function at uniform input points; the writer
emits it back as a FunctionType-0 /Function.
Trait Implementations§
Source§impl Clone for SpotTintFunction
impl Clone for SpotTintFunction
Source§fn clone(&self) -> SpotTintFunction
fn clone(&self) -> SpotTintFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpotTintFunction
impl RefUnwindSafe for SpotTintFunction
impl Send for SpotTintFunction
impl Sync for SpotTintFunction
impl Unpin for SpotTintFunction
impl UnsafeUnpin for SpotTintFunction
impl UnwindSafe for SpotTintFunction
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