GR_IMAGE_INFO

Name

GR_IMAGE_INFO -- Image properties

Synopsis

typedef struct 
{
    GR_IMAGE_ID  id;
    int          width;
    int          height;
    int          planes;
    int          bpp;
    int          pitch;
    int          bytesperpixel;
    int          compression;
    int          palsize;
    GR_PALENTRY  palette[256];
} GR_IMAGE_INFO;
  

Description

A GR_IMAGE_INFO structure contains properties of a nano-X image. The image properties are filled in by the function GrGetImageInfo().

Fields

TypeNameDescription
GR_IMAGE_IDidThe image ID.
intwidthThe width of the image in pixels.
intheightThe height of the image in pixels.
intplanesThe number of color planes in the image.
intbppThe number if bits per pixel in the image.
intpitchThe number of bytes per line in the image.
intbytesperpixelThe number of bytes per pixel in the image.
intcompressionThe compression algorithm used in the image.
intpalsizeThe number pallete entries used by the image.
GR_PALENTRYpalette[256]The image's color palette.

See Also

GrGetImageInfo(), GR_IMAGE_HDR.