g2: GD

- Main Page
- Modules
- Files
- Related Pages

# GD
[g2 Physical devices]

## Enumerations

enum | g2_gd_type { g2_gd_jpeg = 0, g2_gd_png = 1, g2_gd_gif = 2 }

## Functions

int | g2_open_gd (const char *filename, int width, int height, enum g2_gd_type gd_type)

## Enumeration Type Documentation

enum g2_gd_type

g2 gd bitmap types

Enumerator:

  g2_gd_jpeg | jpeg
  g2_gd_png | png
  g2_gd_gif | gif

## Function Documentation

int g2_open_gd | ( | const char * | filename,
|  | int | width,
|  | int | height,
|  | enum g2_gd_type | gd_type
| ) |

Create a GD (bitmap image) device.

Parameters:

  | filename | output file name
  | width | width
  | height | height
  | gd_type | file type, see g2_gd_type

Returns:
  physical device id