Module 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 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 filteredImage
.out_subset
is required storage for the actual bounds of the filteredImage
.offset
is required storage for translation of returnedImage
. - Creates a CPU-backed
Image
frombitmap
, sharing or copyingbitmap
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.