skia_
safe
0.81.0
Image
Info
Aliased type
Methods
alpha_type
bounds
bytes_per_pixel
color_info
color_space
color_type
compute_byte_size
compute_min_byte_size
compute_offset
dimensions
from_color_info
height
is_empty
is_gamma_close_to_srgb
is_opaque
min_row_bytes
new
new_a8
new_n32
new_n32_premul
new_s32
new_unknown
reset
shift_per_pixel
valid_row_bytes
width
with_alpha_type
with_color_space
with_color_type
with_dimensions
Trait Implementations
Debug
Send
Sync
In crate skia_
safe
skia_safe
Type Alias
ImageInfo
Copy item path
Source
pub type ImageInfo =
Handle
<SkImageInfo>;
Aliased Type
§
struct ImageInfo(
/* private fields */
);
Implementations
§
Source
§
impl
ImageInfo
Source
pub fn
new
( dimensions: impl
Into
<
ISize
>, ct:
ColorType
, at:
AlphaType
, cs: impl
Into
<
Option
<
ColorSpace
>>, ) -> Self
Source
pub fn
from_color_info
( dimensions: impl
Into
<
ISize
>, color_info:
ColorInfo
, ) -> Self
Source
pub fn
new_n32
( dimensions: impl
Into
<
ISize
>, at:
AlphaType
, cs: impl
Into
<
Option
<
ColorSpace
>>, ) ->
ImageInfo
Source
pub fn
new_s32
(dimensions: impl
Into
<
ISize
>, at:
AlphaType
) ->
ImageInfo
Source
pub fn
new_n32_premul
( dimensions: impl
Into
<
ISize
>, cs: impl
Into
<
Option
<
ColorSpace
>>, ) ->
ImageInfo
Source
pub fn
new_a8
(dimensions: impl
Into
<
ISize
>) ->
ImageInfo
Source
pub fn
new_unknown
(dimensions:
Option
<
ISize
>) ->
ImageInfo
Source
pub fn
width
(&self) ->
i32
Source
pub fn
height
(&self) ->
i32
Source
pub fn
color_type
(&self) ->
ColorType
Source
pub fn
alpha_type
(&self) ->
AlphaType
Source
pub fn
color_space
(&self) ->
Option
<
ColorSpace
>
Source
pub fn
is_empty
(&self) ->
bool
Source
pub fn
color_info
(&self) -> &
ColorInfo
Source
pub fn
is_opaque
(&self) ->
bool
Source
pub fn
dimensions
(&self) ->
ISize
Source
pub fn
bounds
(&self) ->
IRect
Source
pub fn
is_gamma_close_to_srgb
(&self) ->
bool
Source
pub fn
with_dimensions
(&self, new_dimensions: impl
Into
<
ISize
>) -> Self
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, new_color_space: impl
Into
<
Option
<
ColorSpace
>>, ) -> Self
Source
pub fn
bytes_per_pixel
(&self) ->
usize
Source
pub fn
shift_per_pixel
(&self) ->
usize
Source
pub fn
min_row_bytes
(&self) ->
usize
Source
pub fn
compute_offset
( &self, point: impl
Into
<
IPoint
>, row_bytes:
usize
, ) ->
usize
Source
pub fn
compute_byte_size
(&self, row_bytes:
usize
) ->
usize
Source
pub fn
compute_min_byte_size
(&self) ->
usize
Source
pub fn
valid_row_bytes
(&self, row_bytes:
usize
) ->
bool
Source
pub fn
reset
(&mut self) -> &mut Self
Trait Implementations
§
Source
§
impl
Debug
for
ImageInfo
Source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
Source
§
impl
Send
for
ImageInfo
Source
§
impl
Sync
for
ImageInfo