skia_safe

Type Alias ImageGenerator

Source
pub type ImageGenerator = RefHandle<SkImageGenerator>;

Aliased Type§

struct ImageGenerator(/* private fields */);

Implementations§

Source§

impl ImageGenerator

Source

pub fn unique_id(&self) -> u32

Source

pub fn encoded_data(&mut self) -> Option<Data>

Source

pub fn info(&self) -> &ImageInfo

Source

pub fn is_valid(&self, context: Option<&mut RecordingContext>) -> bool

Source

pub fn is_protected(self) -> bool

Source

pub fn get_pixels( &mut self, info: &ImageInfo, pixels: &mut [u8], row_bytes: usize, ) -> bool

Source

pub fn query_yuva_info( &self, supported_data_types: &SupportedDataTypes, ) -> Option<YUVAPixmapInfo>

Source

pub fn is_texture_generator(&self) -> bool

Source

pub fn from_encoded(_encoded: impl Into<Data>) -> Option<Self>

👎Deprecated since 0.64.0: Removed, will return None. Use Image::deferred_from_encoded_data() or Codec::from_data()

Trait Implementations§

Source§

impl Debug for ImageGenerator

Source§

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

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

impl Send for ImageGenerator

Source§

impl Sync for ImageGenerator