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_BINARY | 0x0001 | Binary |
GFL_GREY | 0x0002 | Grey scale |
GFL_COLORS | 0x0004 | Colors with colormap |
GFL_RGB | 0x00010 | TrueColors - Red/Green/Blue |
GFL_RGBA | 0x0020 | TrueColors - Red/Green/Blue/Alpha |
GFL_BGR | 0x0040 | TrueColors - Blue/Green/Red |
GFL_ABGR | 0x0080 | TrueColors - Alpha/Blue/Green/Red |
GFL_BGRA | 0x0100 | TrueColors - Blue/Green/Red/Alpha |
GFL_ARGB | 0x0200 | TrueColors - Alpha/Red/Green/Blue |
GFL_CMYK | 0x0400 | TrueColors - Cyan/Magenta/Yellow/Black |
- Origin
-
Origin of the picture.
GFL_TOP_LEFT | 0 | Top left (default) |
GFL_BOTTOM_LEFT | 2 | Bottom left |
GFL_TOP_RIGHT | 1 | Top right |
GFL_BOTTOM_RIGHT | 3 | Bottom 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
gflLoadBitmap,
gflLoadBitmapFromHandle,
gflLoadThumbnail,
gflLoadThumbnailFromHandle,
gflSaveBitmap,
gflSaveBitmapIntoHandle,
gflSetComment,
gflBitmapGetIPTC,
gflBitmapGetEXIF,
gflBitmapHasEXIF,
gflBitmapHasIPTC,
gflBitmapRemoveEXIFThumbnail,
gflBitmapRemoveMetaData