pub struct FillParams {Show 17 fields
pub color: DeviceColor,
pub fill_rule: FillRule,
pub ctm: Matrix,
pub is_text_glyph: bool,
pub overprint: bool,
pub overprint_mode: i32,
pub opm_paired: bool,
pub painted_channels: u8,
pub is_device_cmyk: bool,
pub spot_color: Option<SpotColor>,
pub rendering_intent: u8,
pub transfer: TransferState,
pub halftone: HalftoneState,
pub bg_ucr: BgUcrState,
pub alpha: f64,
pub blend_mode: u8,
pub alpha_is_shape: bool,
}Expand description
Parameters for filling a path.
Constructed by interpreter/parser code (stet-ops, stet-pdf-reader)
and read by renderers. New fields may be added without notice; pattern-
matching consumers should use .. to ignore unmatched fields.
Fields§
§color: DeviceColor§fill_rule: FillRule§ctm: Matrix§is_text_glyph: boolTrue when this fill is a text glyph from a show operator. PDF device skips these (uses Text elements instead).
overprint: boolOverprint flag from graphics state (used by PDF output).
overprint_mode: i32Overprint mode (0 or 1). With OPM 1 + DeviceCMYK, only non-zero channels are painted.
opm_paired: boolTrue when /OPM was set together with /op or /OP in the same ExtGState dict that configured this fill. Enables strict OPM-1 “preserve zero components” behavior; when false, an all-zero CMYK source still performs a full knockout (legacy Adobe compatibility).
painted_channels: u8Which CMYK channels this fill paints (bitmask of CMYK_C/M/Y/K).
is_device_cmyk: boolTrue when color space is DeviceCMYK or ICCBased(4).
spot_color: Option<SpotColor>Separation/DeviceN color for PDF output. None for device color spaces.
rendering_intent: u8Rendering intent (0=RelativeColorimetric, 1=Absolute, 2=Perceptual, 3=Saturation).
transfer: TransferStatePre-sampled transfer function state for PDF output.
halftone: HalftoneStatePre-computed halftone screen state for PDF output.
bg_ucr: BgUcrStatePre-sampled black generation / undercolor removal for PDF output.
alpha: f64Fill opacity (0.0–1.0, default 1.0). Used by PDF transparency.
blend_mode: u8Blend mode (0=Normal, 1=Multiply, …, 11=Exclusion). Default 0.
alpha_is_shape: boolPDF AIS (alpha-is-shape). When true, the source is interpreted as
shape rather than opacity. Default false.
Trait Implementations§
Source§impl Clone for FillParams
impl Clone for FillParams
Source§fn clone(&self) -> FillParams
fn clone(&self) -> FillParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more