pub struct StrokeParams {Show 22 fields
pub color: DeviceColor,
pub line_width: f64,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub miter_limit: f64,
pub dash_pattern: DashPattern,
pub ctm: Matrix,
pub stroke_adjust: bool,
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 stroking a path.
New fields may be added without notice; pattern-matching consumers
should use .. to ignore unmatched fields.
Fields§
§color: DeviceColor§line_width: f64§line_cap: LineCap§line_join: LineJoin§miter_limit: f64§dash_pattern: DashPattern§ctm: Matrix§stroke_adjust: boolWhen true, snap thin stroke coordinates to device pixel centers.
is_text_glyph: boolTrue when this stroke is a text glyph from a show operator (PaintType 2).
overprint: boolOverprint flag from graphics state (used by PDF output).
overprint_mode: i32Overprint mode (0 or 1).
opm_paired: boolSee FillParams::opm_paired. Strict OPM-1 preserve requires both /OPM and /op|/OP set in the same ExtGState dict.
painted_channels: u8Which CMYK channels this stroke paints (bitmask of CMYK_C/M/Y/K).
is_device_cmyk: boolTrue when stroke color space is DeviceCMYK or ICCBased(4) — OPM 1 only applies to these.
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: f64Stroke 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 StrokeParams
impl Clone for StrokeParams
Source§fn clone(&self) -> StrokeParams
fn clone(&self) -> StrokeParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more