☰
Picture
Methods
approximate_bytes_used
approximate_op_count
approximate_op_count_nested
as_image_filter
cull_rect
from_bytes
from_data
into_image_filter
new_placeholder
playback
serialize
to_shader
unique_id
Trait Implementations
Debug
Send
Sync
In skia_safe
?
Type Definition
skia_safe
::
Picture
source
·
[
−
]
pub type Picture =
RCHandle
<
SkPicture
>;
Implementations
§
source
§
impl
Picture
source
pub fn
from_data
(data: &
Data
) ->
Option
<
Picture
>
source
pub fn
from_bytes
(bytes: &[
u8
]) ->
Option
<
Picture
>
source
pub fn
playback
(&self, canvas: &mut
Canvas
)
source
pub fn
cull_rect
(&self) ->
Rect
source
pub fn
unique_id
(&self) ->
u32
source
pub fn
serialize
(&self) ->
Data
source
pub fn
new_placeholder
(cull: impl
AsRef
<
Rect
>) ->
Picture
source
pub fn
approximate_op_count
(&self) ->
usize
source
pub fn
approximate_op_count_nested
( &self, nested: impl
Into
<
Option
<
bool
>> ) ->
usize
source
pub fn
approximate_bytes_used
(&self) ->
usize
source
pub fn
to_shader
<'a, 'b>( &self, tm: impl
Into
<
Option
<(
TileMode
,
TileMode
)>>, mode:
FilterMode
, local_matrix: impl
Into
<
Option
<&'a
Matrix
>>, tile_rect: impl
Into
<
Option
<&'b
Rect
>> ) ->
Shader
source
§
impl
Picture
source
pub fn
as_image_filter
<'a>( &self, crop_rect: impl
Into
<
Option
<&'a
Rect
>> ) ->
Option
<
ImageFilter
>
source
pub fn
into_image_filter
<'a>( self, crop_rect: impl
Into
<
Option
<&'a
Rect
>> ) ->
Option
<
ImageFilter
>
Trait Implementations
§
source
§
impl
Debug
for
Picture
source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
source
§
impl
Send
for
Picture
source
§
impl
Sync
for
Picture