skia_safe

Type Alias Picture

Source
pub type Picture = RCHandle<SkPicture>;

Aliased Type§

struct Picture(/* private fields */);

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: &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