Type Definition skia_safe::ColorSpace

source ·
pub type ColorSpace = RCHandle<SkColorSpace>;

Implementations§

source§

impl ColorSpace

source

pub fn new_srgb() -> Self

source

pub fn new_srgb_linear() -> Self

source

pub fn to_xyzd50_hash(&self) -> XYZD50Hash

source

pub fn with_linear_gamma(&self) -> Self

source

pub fn with_srgb_gamma(&self) -> Self

source

pub fn with_color_spin(&self) -> Self

source

pub fn is_srgb(&self) -> bool

source

pub fn serialize(&self) -> Data

source

pub fn deserialize(data: impl Into<Data>) -> Self

Trait Implementations§

source§

impl Debug for ColorSpace

source§

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

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

impl Send for ColorSpace

source§

impl Sync for ColorSpace