directfb-csource
surfaces
SYNOPSIS
directfb-csource [options] <imagefile>
DESCRIPTION
directfb-csource is a small utility that reads a PNG
(Portable Network Graphics) image file and generates C
code that can be used to compile the image into a DirectFB
application. The example below illustrates this.
OPTIONS
--name=identifier
Specifies the identifier name (prefix) for the gen
erated variables. If this option is not used, the
identifier is generated from the filename.
--format=pixelformat
Specifies the pixel-format of the generated inline
surface. Possible values are ARGB, RGB32, RGB24,
RGB16, RGB15, RGB332, A8 and LUT8. By default the
format is ARGB if the PNG image has an alpha chan
nel or RGB32 otherwise.
--version
Output version information.
--help Print brief help and exit.
EXAMPLE
Generate a header file from a PNG image file:
directfb-csource --name=foo foo.png > foo.h
Include the generated header in your application and cre
ate a surface using the surface description from the
header file:
#include <directfb.h>
#include "foo.h"
IDirectFB *dfb;
IDirectFBSurface *surface;
Version 0.9.16 8 Aug 2002 DIRECTFB-CSOURCE(1)
|