Type Alias ImageGenerator
pub type ImageGenerator = RefHandle<SkImageGenerator>;
Aliased Type§
struct ImageGenerator(/* private fields */);
Implementations
§impl RefHandle<SkImageGenerator>
impl RefHandle<SkImageGenerator>
pub fn unique_id(&self) -> u32
pub fn encoded_data(&mut self) -> Option<RCHandle<SkData>>
pub fn info(&self) -> &Handle<SkImageInfo>
pub fn is_valid( &self, context: Option<&mut RCHandle<GrRecordingContext>>, ) -> bool
pub fn is_protected(self) -> bool
pub fn get_pixels( &mut self, info: &Handle<SkImageInfo>, pixels: &mut [u8], row_bytes: usize, ) -> bool
pub fn query_yuva_info( &self, supported_data_types: &Handle<SkYUVAPixmapInfo_SupportedDataTypes>, ) -> Option<Handle<SkYUVAPixmapInfo>>
pub fn is_texture_generator(&self) -> bool
pub fn from_encoded( _encoded: impl Into<RCHandle<SkData>>, ) -> Option<RefHandle<SkImageGenerator>>
👎Deprecated since 0.64.0: Removed, will return
None
. Use Image::deferred_from_encoded_data() or Codec::from_data()