7
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10
TITLE="The gdk-pixbuf Library"
11
HREF="index.html"><LINK
16
TITLE="Reference Counting and Memory Mangement"
17
HREF="gdk-pixbuf-refcounting.html"><LINK
19
TITLE="Image Data in Memory"
20
HREF="gdk-pixbuf-creating.html"></HEAD
55
HREF="gdk-pixbuf-refcounting.html"
60
><<< Previous Page</B
109
HREF="gdk-pixbuf-creating.html"
114
>Next Page >>></B
123
NAME="GDK-PIXBUF-FILE-LOADING">File Loading</H1
131
>File Loading -- Loading a pixbuf from a file.</DIV
133
CLASS="REFSYNOPSISDIV"
146
> #include <gdk-pixbuf/gdk-pixbuf.h>
150
HREF="gdk-pixbuf-file-loading.html#GDK-PIXBUF-NEW-FROM-FILE"
151
>gdk_pixbuf_new_from_file</A
152
> (const char *filename);</PRE
168
> library provides a simple mechanism for loading
169
an image from a file in synchronous fashion. This means that the
170
library takes control of the application while the file is being
171
loaded; from the user's point of view, the application will block
172
until the image is done loading.
175
> This interface can be used by applications in which blocking is
176
acceptable while an image is being loaded. It can also be used to
177
load small images in general. Applications that need progressive
178
loading can use the <A
179
HREF="gdkpixbufloader.html"
181
> functionality instead.
198
NAME="GDK-PIXBUF-NEW-FROM-FILE"
200
>gdk_pixbuf_new_from_file ()</H3
209
CLASS="PROGRAMLISTING"
210
>GdkPixbuf* gdk_pixbuf_new_from_file (const char *filename);</PRE
215
>Creates a new pixbuf by loading an image from a file. The file format is
216
detected automatically.</P
220
CLASS="INFORMALTABLE"
247
> Name of file to load.</TD
265
> A newly-created pixbuf with a reference count of 1, or <TT
269
any of several error conditions occurred: the file could not be opened,
270
there was no loader for the file's format, there was not enough memory to
271
allocate the image buffer, or the image file contained invalid data.</TD
289
HREF="gdkpixbufloader.html"
297
CLEAR="all"><BR><TABLE
309
HREF="gdk-pixbuf-refcounting.html"
314
><<< Previous Page</B
363
HREF="gdk-pixbuf-creating.html"
368
>Next Page >>></B
381
>Reference Counting and Memory Mangement</B
391
>Image Data in Memory</B
b'\\ No newline at end of file'