GFL_BITMAP

GFL SDK

GFL_BITMAP

The GFL_BITMAP structure contains all informations about picture in memory.

typedef struct (
  GFL_BITMAP_TYPE Type,  
  GFL_ORIGIN Origin,  
  GFL_INT32 Width,  
  GFL_INT32 Height,  
  GFL_UINT32 BytesPerLine,  
  GFL_INT16 LinePadding,  
  GFL_UINT16 BitsPerComponent,  
  GFL_UINT16 ComponentsPerPixel,  
  GFL_UINT16 BytesPerPixel,  
  GFL_UINT16 Xdpi,  
  GFL_UINT16 Ydpi,  
  GFL_INT16 TransparentIndex,  
  GFL_INT32 ColorUsed,  
  GFL_COLORMAP * ColorMap,  
  GFL_UINT8 * Data,  
  char * Comment,  
  void * MetaData
} GFL_BITMAP

Members

    Type
    Type of the picture
    GFL_BINARY0x0001Binary
    GFL_GREY0x0002Grey scale
    GFL_COLORS0x0004Colors with colormap
    GFL_RGB0x00010TrueColors - Red/Green/Blue
    GFL_RGBA0x0020TrueColors - Red/Green/Blue/Alpha
    GFL_BGR0x0040TrueColors - Blue/Green/Red
    GFL_ABGR0x0080TrueColors - Alpha/Blue/Green/Red
    GFL_BGRA0x0100TrueColors - Blue/Green/Red/Alpha
    GFL_ARGB0x0200TrueColors - Alpha/Red/Green/Blue
    GFL_CMYK0x0400TrueColors - Cyan/Magenta/Yellow/Black
    Origin
    Origin of the picture.
    GFL_TOP_LEFT0Top left (default)
    GFL_BOTTOM_LEFT2Bottom left
    GFL_TOP_RIGHT1Top right
    GFL_BOTTOM_RIGHT3Bottom right
    Width
    Width in pixels of the picture.
    Height
    Height in pixels of the picture.
    BytesPerLine
    Bytes per line of pixels.
    LinePadding
    Internal use, do not modify.
    BitsPerComponent
    Bits per component, can be 1, 8, 16
    ComponentsPerPixel
    Component per pixel, can be 1, 3 or 4
    BytesPerPixel
    Bytes per pixel (For example: 1, 3 or 4).
    Xdpi
    Pixels per inch in X axis.
    Ydpi
    Pixels per inch in Y axis.
    TransparentIndex
    Index of transparency (only for GFL_COLORS & GFL_GREY type).
    ColorUsed
    Number of color used in the picture (only for GFL_COLORS & GFL_GREY type).
    ColorMap
    Address of a GFL_COLORMAP structure for the colormap (only for GFL_COLORS type).
    Data
    Pointer of the picture data.
    Comment
    Address of a string used by the comment. You must use gflSetComment to change the comment.
    MetaData
    Pointer of Metadata. You must use gflBitmapGetIPTC & gflBitmapGetEXIF to obtain readable data.

See also