gdk-pixbuf-csourcegdk-pixbufDeveloperTimJanikgdk-pixbuf-csource1User Commandsgdk-pixbuf-csourceC code generation utility for GdkPixbuf imagesgdk-pixbuf-csourceOPTIONIMAGEgdk-pixbuf-csourceOPTION--build-listNAMEIMAGEDescriptiongdk-pixbuf-csource is a small utility that generates
C code containing images, useful for compiling images directly into programs.
gdk-pixbuf-csource either takes as input one image file
name to generate code for, or, using the option,
a list of (name, image)
pairs to generate code for a list of images into named variables.
Options
Generate pixbuf data stream (a single string containing a serialized
GdkPixdata structure in network byte order).
Generate GdkPixdata structure (needs the GdkPixdata
structure definition from gdk-pixdata.h).
Generate *_ROWSTRIDE, *_WIDTH, *_HEIGHT, *_BYTES_PER_PIXEL and
*_RLE_PIXEL_DATA or *_PIXEL_DATA macro definitions for the image.
Enables run-length encoding for the generated pixel data (default).
Disables run-length encoding for the generated pixel data.
Generate extern symbols.
Generate static symbols (default).
Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) macro definition
to decode run-length encoded image data.
Specifies the identifier name (prefix) for the generated variables or
macros (useful only if was not specified).
Enables (name, image)
pair parsing mode.
,
Print brief help and exit.
,
Print version and exit.
Make warnings fatal (causes the program to abort).
See also
The GdkPixbuf documentation, shipped with the
Gtk+ distribution, available from www.gtk.org.
Bugs
The runlength encoder gets out of sync with the pixel boundaries, since
it includes the rowstride padding in the encoded stream. Furthermore, it
generates pixbufs with suboptimal rowstride in some cases.