Expand description
Glycin allows to decode images into gdk::Texture
s and to extract image
metadata. The decoding happens in sandboxed modular image loaders that have
to be provided as binaries. The glycin-utils
for more
details.
§Example
let file = gio::File::for_path("image.jpg");
let image = Loader::new(file).load().await?;
let height = image.info().height;
let texture = image.next_frame().await?.texture;
You can pass the texture
of a Frame
to
gtk4::Image::from_paintable()
to display the image.
§Features
Structs§
- A frame of an image often being the complete image
- More information about a frame
- Request information to get a specific frame
- Image handle containing metadata and allowing frame requests
- Various image metadata
- Image request builder
Enums§
Constants§
Functions§
- Returns a list of mime types for which loaders are configured