Module skia_safe::image::images

source ·

Enums

Functions

  • Return a Image using the encoded data, but attempts to defer decoding until the image is actually used/drawn. This deferral allows the system to cache the result, either on the CPU or on the GPU, depending on where the image is drawn. If memory is low, the cache may be purged, causing the next draw of the image to have to re-decode.
  • Creates Image from data returned by image_generator. The image data will not be created (on either the CPU or GPU) until the image is actually drawn. Generated data is owned by Image and may not be shared or accessed.
  • Creates Image from picture. Returned Image width and height are set by dimensions. Image draws picture with matrix and paint, set to bit_depth and color_space.
  • Creates a CPU-backed Image from bitmap, sharing or copying bitmap pixels. If the bitmap is marked immutable, and its pixel memory is shareable, it may be shared instead of copied.
  • Creates a CPU-backed Image from compressed data.
  • Creates CPU-backed Image from pixel data described by info. The pixels data will not be copied.