# hpgs_image_st Struct Reference
[The public pixel image API.]

An abstract pixel image. More...

`#include <hpgs.h>`

## Data Fields
hpgs_image_vtable * | vtable
| The virtual table.
int | width
| The number of pixel columns.
int | height
| The number of pixel rows.
hpgs_palette_color * | palette
| The palette for indexed images.
unsigned * | palette_idx
| a compacted rgb color index.
int | palette_ncolors
| The number of colors in the palette.

## Detailed Description

An abstract pixel image.

This structure has a public alias `hpgs_image` and represents a rectangular pixel container, which tradiationally is called an image.

Nevertheless, implementations for drawing to a window system may be provided in the future.

The documentation for this struct was generated from the following file:

- hpgs.h