Module image

Source

StructsΒ§

FrameDurations
Stores the durations between each frame of an animated image
Image
A widget which displays an image.
ImageOptions
ImageSize
This type determines the constraints on how the size of an image should be calculated.

EnumsΒ§

ImageFit
This type determines how the image should try to fit within the UI.
ImageSource
This type tells the Ui how to load an image.

FunctionsΒ§

animated_image_frame_index πŸ”’
Calculates at which frame the animated image is
are_animated_image_bytes πŸ”’
decode_animated_image_uri
Extracts uri and frame index
encode_animated_image_uri πŸ”’
Animated image uris contain the uri & the frame that will be displayed
has_gif_magic_header
Checks if bytes are gifs
has_webp_header
Checks if bytes are webp
is_animated_image_uri πŸ”’
is_gif_uri πŸ”’
Checks if uri is a gif file
is_webp_uri πŸ”’
Checks if uri is a webp file
paint_texture_at
paint_texture_load_result
scale_to_fit πŸ”’
texture_load_result_response
Attach tooltips like β€œLoading…” or β€œFailed loading: …”.