pub type ImageGenerator = RefHandle<SkImageGenerator>;
Aliased Type§
struct ImageGenerator(/* private fields */);
Implementations§
Source§impl ImageGenerator
impl ImageGenerator
pub fn unique_id(&self) -> u32
pub fn encoded_data(&mut self) -> Option<Data>
pub fn info(&self) -> &ImageInfo
pub fn is_valid(&self, context: Option<&mut RecordingContext>) -> bool
pub fn is_protected(self) -> bool
pub fn get_pixels( &mut self, info: &ImageInfo, pixels: &mut [u8], row_bytes: usize, ) -> bool
pub fn query_yuva_info( &self, supported_data_types: &SupportedDataTypes, ) -> Option<YUVAPixmapInfo>
pub fn is_texture_generator(&self) -> bool
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()