☰
ColorInfo
Methods
alpha_type
bytes_per_pixel
color_space
color_type
is_gamma_close_to_srgb
is_opaque
new
shift_per_pixel
with_alpha_type
with_color_space
with_color_type
Trait Implementations
Debug
Default
Send
Sync
In skia_safe
?
Type Definition
skia_safe
::
ColorInfo
source
·
[
−
]
pub type ColorInfo =
Handle
<
SkColorInfo
>;
Implementations
§
source
§
impl
ColorInfo
source
pub fn
new
( ct:
ColorType
, at:
AlphaType
, cs: impl
Into
<
Option
<
ColorSpace
>> ) -> Self
source
pub fn
color_space
(&self) ->
Option
<
ColorSpace
>
source
pub fn
color_type
(&self) ->
ColorType
source
pub fn
alpha_type
(&self) ->
AlphaType
source
pub fn
is_opaque
(&self) ->
bool
source
pub fn
is_gamma_close_to_srgb
(&self) ->
bool
source
pub fn
with_alpha_type
(&self, new_alpha_type:
AlphaType
) -> Self
source
pub fn
with_color_type
(&self, new_color_type:
ColorType
) -> Self
source
pub fn
with_color_space
(&self, cs: impl
Into
<
Option
<
ColorSpace
>>) -> Self
source
pub fn
bytes_per_pixel
(&self) ->
usize
source
pub fn
shift_per_pixel
(&self) ->
usize
Trait Implementations
§
source
§
impl
Debug
for
ColorInfo
source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
source
§
impl
Default
for
ColorInfo
source
§
fn
default
() -> Self
Returns the “default value” for a type.
Read more
source
§
impl
Send
for
ColorInfo
source
§
impl
Sync
for
ColorInfo