|
LibGd 2.4.0-dev
GD Graphics library
|
Wireless Bitmap reading and writing support. More...

Functions | |
| void | gdImageWBMP (gdImagePtr image, int fg, FILE *out) |
| Write an image as WBMP data to a stdio file. | |
| void | gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtxPtr out) |
| Write an image as WBMP data to a gdIOCtx. | |
| void * | gdImageWBMPPtr (gdImagePtr im, int *size, int fg) |
| Write an image as WBMP data to a newly allocated memory buffer. | |
WBMP Reading | |
| gdImagePtr | gdImageCreateFromWBMP (FILE *inFile) |
| Create an image from a WBMP stdio file. | |
| gdImagePtr | gdImageCreateFromWBMPCtx (gdIOCtxPtr infile) |
| Create an image from WBMP data read through a gdIOCtx. | |
| gdImagePtr | gdImageCreateFromWBMPPtr (int size, void *data) |
| Create an image from a WBMP memory buffer. | |
Wireless Bitmap reading and writing support.
WBMP support reads Wireless Bitmap Type 0 images into palette-based gd images with white and black colors. WBMP output writes a 1-bit image: pixels whose color matches the foreground color parameter are written as black, and all other pixels are written as white.
| gdImagePtr gdImageCreateFromWBMP | ( | FILE * | inFile | ) |
Create an image from a WBMP stdio file.
gdImageCreateFromWBMP() does not close inFile. The returned image is caller-owned and must be destroyed with gdImageDestroy.
| inFile | Pointer to the input FILE stream. |
| gdImagePtr gdImageCreateFromWBMPCtx | ( | gdIOCtxPtr | infile | ) |
Create an image from WBMP data read through a gdIOCtx.
gdImageCreateFromWBMPCtx() does not close infile. The returned image is caller-owned and must be destroyed with gdImageDestroy.
| infile | Pointer to the gdIOCtx input context. |
| gdImagePtr gdImageCreateFromWBMPPtr | ( | int | size, |
| void * | data | ||
| ) |
Create an image from a WBMP memory buffer.
The data buffer is borrowed for the duration of the call. The returned image is caller-owned and must be destroyed with gdImageDestroy.
| size | Size of the WBMP memory buffer in bytes. |
| data | Pointer to the WBMP memory buffer. |
| void gdImageWBMP | ( | gdImagePtr | image, |
| int | fg, | ||
| FILE * | out | ||
| ) |
Write an image as WBMP data to a stdio file.
gdImageWBMP() does not close out. The image is borrowed for the duration of the call. Pixels whose color equals fg are written as black; all other pixels are written as white.
| image | The image to write. |
| fg | Foreground color value to write as black. |
| out | Pointer to the output FILE stream. |
| void gdImageWBMPCtx | ( | gdImagePtr | image, |
| int | fg, | ||
| gdIOCtxPtr | out | ||
| ) |
Write an image as WBMP data to a gdIOCtx.
gdImageWBMPCtx() does not close out. The image is borrowed for the duration of the call. Pixels whose color equals fg are written as black; all other pixels are written as white.
| image | The image to write. |
| fg | Foreground color value to write as black. |
| out | Pointer to the gdIOCtx output context. |
| void * gdImageWBMPPtr | ( | gdImagePtr | im, |
| int * | size, | ||
| int | fg | ||
| ) |
Write an image as WBMP data to a newly allocated memory buffer.
The image is borrowed for the duration of the call. Pixels whose color equals fg are written as black; all other pixels are written as white. The returned buffer is caller-owned and must be freed with gdFree().
| im | The image to write. |
| size | Pointer to an integer that receives the returned buffer size. |
| fg | Foreground color value to write as black. |