Type Definition skia_safe::ColorMatrix

source ·
pub type ColorMatrix = Handle<SkColorMatrix>;

Implementations§

source§

impl ColorMatrix

source

pub fn new( m00: f32, m01: f32, m02: f32, m03: f32, m04: f32, m10: f32, m11: f32, m12: f32, m13: f32, m14: f32, m20: f32, m21: f32, m22: f32, m23: f32, m24: f32, m30: f32, m31: f32, m32: f32, m33: f32, m34: f32 ) -> Self

source

pub fn rgb_to_yuv(rgb: YUVColorSpace) -> Self

source

pub fn yuv_to_rgb(yuv: YUVColorSpace) -> Self

source

pub fn set_identity(&mut self)

source

pub fn set_scale( &mut self, r_scale: f32, g_scale: f32, b_scale: f32, a_scale: impl Into<Option<f32>> )

source

pub fn post_translate(&mut self, dr: f32, dg: f32, db: f32, da: f32)

source

pub fn set_concat(&mut self, a: &ColorMatrix, b: &ColorMatrix)

source

pub fn pre_concat(&mut self, mat: &ColorMatrix)

source

pub fn post_concat(&mut self, mat: &ColorMatrix)

source

pub fn set_saturation(&mut self, sat: f32)

source

pub fn set_row_major(&mut self, src: &[f32; 20])

source

pub fn get_row_major(&self, dst: &mut [f32; 20])

Trait Implementations§

source§

impl Debug for ColorMatrix

source§

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

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

impl Default for ColorMatrix

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq<Handle<SkColorMatrix>> for ColorMatrix

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Send for ColorMatrix

source§

impl Sync for ColorMatrix