[ CCode ( type_id = "gly_loader_get_type ()" ) ]
[ Version ( since = "2.0" ) ]
public class Loader : Object
[class@Loader] prepares loading an image.
The following example shows how to obtain a `Gdk.Texture`. It uses GlyGtk4 for this.
```c include <glycin-gtk4.h>
file = g_file_new_for_path ("test.png"); loader = gly_loader_new (file); image = gly_loader_load (loader, NULL); if (image) { frame = gly_image_next_frame (image, NULL); if (frame) { texture = gly_gtk_frame_get_texture (frame); g_print ("Image height: d\n", gdk_texture_get_height (texture)); image_widget = gtk_image_new_from_paintable (GDK_PAINTABLE ( texture)); } } ```