skia_safe

Type Alias Blender

Source
pub type Blender = RCHandle<SkBlender>;
Expand description

Blender represents a custom blend function in the Skia pipeline. A blender combines a source color (the result of our paint) and destination color (from the canvas) into a final color.

Aliased Type§

struct Blender(/* private fields */);

Implementations§

Source§

impl Blender

Source

pub fn mode(mode: BlendMode) -> Blender

Create a blender that implements the specified BlendMode.

Source§

impl Blender

Source

pub fn arithmetic( k1: f32, k2: f32, k3: f32, k4: f32, enforce_premul: bool, ) -> Option<Blender>

Trait Implementations§

Source§

impl Debug for Blender

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<SkBlendMode> for Blender

Source§

fn from(mode: BlendMode) -> Self

Converts to this type from the input type.
Source§

impl Send for Blender

Source§

impl Sync for Blender