gflSwapColors

GFL SDK

gflSwapColors

The gflSwapColors function allows to swap component.

GFL_ERROR gflSwapColors(
  GFL_BITMAP * src,  

GFL_BITMAP ** dst,
GFL_SWAPCOLORS_MODE mode );

Parameters

    src
    Pointer to a GFL_BITMAP structure.
    dst
    Address of a pointer to a GFL_BITMAP structure.
    NULL if on the same instance.
    mode
    GFL_SWAPCOLORS_RBG0
    GFL_SWAPCOLORS_BGR1
    GFL_SWAPCOLORS_BRG2
    GFL_SWAPCOLORS_GRB3
    GFL_SWAPCOLORS_GBR4

Return value

    The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.