gflAllockBitmap

GFL SDK

gflAllockBitmap

The gflAllockBitmap function allocates a picture, and return a pointer on a GFL_BITMAP structure.

GFL_BITMAP * gflAllockBitmap(
  GFL_BITMAP_TYPE bitmap_type,  
  GFL_INT32 width, 
  GFL_INT32 height, 
  GFL_UINT32 line_padding, 
  const GFL_COLOR * color
);

Parameters

    bitmap_type
    Type of picture wanted.
    GFL_BINARY0x0001Binary (8 bits)
    GFL_GREY0x0002Grey scale (8 bits)
    GFL_COLORS0x0004Colors with colormap (8 bits)
    GFL_RGB0x0008TrueColors - Red/Green/Blue (24 bits)
    GFL_RGBA0x0010TrueColors - Red/Green/Blue/Alpha (32 bits)
    GFL_BGR0x0020TrueColors - Blue/Green/Red (24 bits)
    GFL_ABGR0x0040TrueColors - Alpha/Blue/Green/Red (32 bits)
    GFL_BGRA0x0100TrueColors - Blue/Green/Red/Alpha (32 bits)
    GFL_ARGB0x0200TrueColors - Alpha/Red/Green/Blue (32 bits)
    width
    Width of the picture wanted.
    height
    Height of the picture wanted.
    line_padding
    Pad for a pixel line.
    For a value of 4, each line of pixels have a multiple of 4 bytes (32 bits).
    color
    Pointer to a GFL_COLOR structure used to set the background color.
    Can be NULL, the background color is (0,0,0).

Return value

See also