Module vizia_core::vg::image::images

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 filtered Image on the CPU. filter processes the src image, potentially changing the color, position, and size. subset is the bounds of src that are processed by filter. clip_bounds is the expected bounds of the filtered Image. out_subset is required storage for the actual bounds of the filtered Image. offset is required storage for translation of returned Image.
  • 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.