pub struct PatchShadingParams {
pub patches: Vec<ShadingPatch>,
pub ctm: Matrix,
pub bbox: Option<[f64; 4]>,
pub color_space: ShadingColorSpace,
pub overprint: bool,
pub painted_channels: u8,
pub color_lut: Option<Arc<Vec<DeviceColor>>>,
pub alpha: f64,
pub blend_mode: u8,
pub alpha_is_shape: bool,
}Expand description
Parameters for Coons/tensor-product patch mesh shading (Types 6 & 7).
New fields may be added without notice; pattern-matching consumers
should use .. to ignore unmatched fields.
Fields§
§patches: Vec<ShadingPatch>§ctm: Matrix§bbox: Option<[f64; 4]>§color_space: ShadingColorSpace§overprint: bool§painted_channels: u8§color_lut: Option<Arc<Vec<DeviceColor>>>When present, vertex raw_colors[i][0] holds a normalized [0,1]
function input. The renderer interpolates this per-pixel, then
indexes the LUT for per-pixel non-linear function evaluation.
alpha: f64Fill alpha from graphics state (0.0–1.0). Default 1.0.
blend_mode: u8Blend mode (0=Normal, …, 15=Luminosity). Default 0.
alpha_is_shape: boolPDF AIS (alpha-is-shape). Default false.
Trait Implementations§
Source§impl Clone for PatchShadingParams
impl Clone for PatchShadingParams
Source§fn clone(&self) -> PatchShadingParams
fn clone(&self) -> PatchShadingParams
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 moreSource§impl Debug for PatchShadingParams
impl Debug for PatchShadingParams
Auto Trait Implementations§
impl Freeze for PatchShadingParams
impl RefUnwindSafe for PatchShadingParams
impl Send for PatchShadingParams
impl Sync for PatchShadingParams
impl Unpin for PatchShadingParams
impl UnsafeUnpin for PatchShadingParams
impl UnwindSafe for PatchShadingParams
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