Crate pixels

Source

Modulesยง

snapshot ๐Ÿ”’

Structsยง

ImageFrame
ImageFrameView
A non-owning reference to the data of an ImageFrame
ImageMetadata
RasterImage
Snapshot
Represents image bitmap with metadata, usually as snapshot of canvas

Enumsยง

Alpha
CorsStatus
Whether this response passed any CORS checks, and is thus safe to read from in cross-origin environments.
EncodedImageType
FilterQuality
GenericImageDecoder ๐Ÿ”’
Multiply
PixelFormat
SnapshotAlphaMode
SnapshotData
SnapshotPixelFormat

Functionsยง

clip
compute_rgba8_byte_length_if_within_limit
Computes image byte length, returning None if overflow occurred or the total length exceeds the maximum image allocation size.
copy_rgba8_image
Copies the rectangle of the source image to the destination image.
decode_animated_image ๐Ÿ”’
decode_static_image ๐Ÿ”’
detect_image_format
flip_y_rgba8_image_inplace
Flips the source image vertically in place.
generic_transform_inplace
is_bmp ๐Ÿ”’
is_gif ๐Ÿ”’
is_ico ๐Ÿ”’
is_jpeg ๐Ÿ”’
is_png ๐Ÿ”’
is_webp ๐Ÿ”’
load_from_memory
make_decoder ๐Ÿ”’
multiply_u8_color
Returns a*b/255, rounding any fractional bits to nearest integer to reduce the loss of precision after multiple consequence alpha (un)premultiply operations.
rgba8_byte_swap_and_premultiply_inplace
rgba8_byte_swap_colors_inplace
rgba8_get_rect
rgba8_premultiply_inplace
Returns true if the pixels were found to be completely opaque.
scale_rgba8_image
Scales the source image to the required size, performing sampling filter algorithm.
transform_inplace
unmultiply_inplace

Type Aliasesยง

IpcSnapshot