Type Definition skia_safe::ImageGenerator

source ·
pub type ImageGenerator = RefHandle<SkImageGenerator>;

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