1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Application-driven image loading.
7 <!-- ##### SECTION Long_Description ##### -->
9 #GdkPixbufLoader provides a way for applications to drive the
10 process of loading an image. Applications can use this
11 functionality instead of gdk_pixbuf_new_from_file() when they need
12 to parse image data in small chunks, such as when reading it from
16 <!-- ##### SECTION See_Also ##### -->
18 gdk_pixbuf_new_from_file()
21 <!-- ##### MACRO GDK_PIXBUF_LOADER ##### -->
23 Casts a #GtkObject to a #GdkPixbufLoader.
29 <!-- ##### FUNCTION gdk_pixbuf_loader_new ##### -->
37 <!-- ##### FUNCTION gdk_pixbuf_loader_write ##### -->
48 <!-- ##### FUNCTION gdk_pixbuf_loader_get_pixbuf ##### -->
57 <!-- ##### FUNCTION gdk_pixbuf_loader_close ##### -->
65 <!-- ##### SIGNAL GdkPixbufLoader::area-updated ##### -->
67 This signal is emitted when a significant area of the image being
68 loaded has been updated. Normally it means that a complete
69 scanline has been read in, but it could be a different area as
70 well. Applications can use this signal to know when to repaint
71 areas of an image that is being loaded.
74 @gdkpixbufloader: the object which received the signal.
79 <!-- # Unused Parameters # -->
80 @loader: Loader which emitted the signal.
81 @x: X offset of upper-left corner of the updated area.
82 @y: Y offset of upper-left corner of the updated area.
83 @width: Width of updated area.
84 @height: Height of updated area.
86 <!-- ##### SIGNAL GdkPixbufLoader::area-prepared ##### -->
88 This signal is emitted when the pixbuf loader has been fed the
89 initial amount of data that is required to figure out the size and
90 format of the image that it will create. After this signal is
91 emitted, applications can call gdk_pixbuf_loader_get_pixbuf() to
92 fetch the partially-loaded pixbuf.
95 @gdkpixbufloader: the object which received the signal.
96 <!-- # Unused Parameters # -->
97 @loader: Loader which emitted the signal.
99 <!-- ##### SIGNAL GdkPixbufLoader::closed ##### -->
101 This signal is emitted when gdk_pixbuf_loader_close() is called.
102 It can be used by different parts of an application to receive
103 notification when an image loader is closed by the code that
107 @gdkpixbufloader: the object which received the signal.
108 <!-- # Unused Parameters # -->
109 @loader: Loader which emitted the signal.
114 sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")