pub struct MeshShadingParams {
pub triangles: Vec<ShadingTriangle>,
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 Gouraud-shaded triangle mesh shading (Types 4 & 5).
New fields may be added without notice; pattern-matching consumers
should use .. to ignore unmatched fields.
Fields§
§triangles: Vec<ShadingTriangle>§ctm: Matrix§bbox: Option<[f64; 4]>§color_space: ShadingColorSpace§overprint: bool§painted_channels: u8§color_lut: Option<Arc<Vec<DeviceColor>>>Pre-sampled color LUT for function-based mesh shadings.
When present, vertex raw_components[0] holds a normalized [0,1]
function input. The renderer interpolates this per-pixel, then
indexes the LUT instead of Gouraud-interpolating DeviceColor.
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 MeshShadingParams
impl Clone for MeshShadingParams
Source§fn clone(&self) -> MeshShadingParams
fn clone(&self) -> MeshShadingParams
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 MeshShadingParams
impl Debug for MeshShadingParams
Auto Trait Implementations§
impl Freeze for MeshShadingParams
impl RefUnwindSafe for MeshShadingParams
impl Send for MeshShadingParams
impl Sync for MeshShadingParams
impl Unpin for MeshShadingParams
impl UnsafeUnpin for MeshShadingParams
impl UnwindSafe for MeshShadingParams
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