Module images

Source

Enums§

BitDepth

Functions§

deferred_from_encoded_data
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.
deferred_from_generator
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.
deferred_from_picture
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.
make_with_filter
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.
raster_from_bitmap
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.
raster_from_compressed_texture_data
Creates a CPU-backed Image from compressed data.
raster_from_data
Creates CPU-backed Image from pixel data described by info. The pixels data will not be copied.