1GDK-PIXBUF-CSOURCE()                                      GDK-PIXBUF-CSOURCE()
2
3
4

NAME

6       gdk-pixbuf-csource - C code generation utility for GdkPixbuf images
7

SYNOPSIS

9       gdk-pixbuf-csource [OPTIONS...] <IMAGE>
10
11

DESCRIPTION

13       gdk-pixbuf-csource  is a small utility that generates C code containing
14       images, useful for compiling images directly into programs.
15
16       gdk-pixbuf-csource either takes as input one image file name to  gener‐
17       ate  code  for, or, using the --build-list option, a list of (name, im‐
18       age) pairs to generate code for a list of images into named variables.
19
20       This tool is mostly meant to be used for backward compatibility.  Newly
21       written  applications and libraries should use GResource to embed image
22       assets in their binary.
23

OPTIONS

25       --stream
26          Generate pixbuf data stream: a single string containing a serialized
27          GdkPixdata structure in network byte order.
28
29       --struct
30          Generate GdkPixdata structure; your code needs the GdkPixdata struc‐
31          ture definition from gdk-pixdata.h.
32
33       --macros
34          Generate  *_ROWSTRIDE,  *_WIDTH,  *_HEIGHT,  *_BYTES_PER_PIXEL   and
35          *_RLE_PIXEL_DATA or *_PIXEL_DATA macro definitions for the image.
36
37       --rle
38          Enables run-length encoding for the generated pixel data (default).
39
40       --raw
41          Disables run-length encoding for the generated pixel data.
42
43       --extern
44          Generate extern symbols.
45
46       --static
47          Generate static symbols (default).
48
49       --decoder
50          Provide  a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) macro
51          definition to decode run-length encoded image data.
52
53       --name=identifier
54          Specifies the identifier name (prefix) for the  generated  variables
55          or macros (useful only if --build-list was not specified).
56
57       --build-list
58          Enables (name, image) pair parsing mode.
59
60       -h, --help
61          Prints a brief help and exit.
62
63       -v, --version
64          Prints the tool version and exit.
65
66       --g-fatal-warnings
67          Makes warnings fatal, and causes the program to abort.
68

SEE ALSO

70       The  GdkPixbuf documentation, shipped by gdk-pixbuf, and also available
71       online on docs.gtk.org.
72

BUGS

74       The runlength encoder gets out of sync with the pixel boundaries, since
75       it  includes  the rowstride padding in the encoded stream. Furthermore,
76       it generates pixbufs with suboptimal rowstride in some cases.
77
78
79
80
81                                                          GDK-PIXBUF-CSOURCE()
Impressum