The gflSwapColors function allows to swap component.
GFL_ERROR gflSwapColors( GFL_BITMAP * src,
GFL_BITMAP ** dst,
GFL_SWAPCOLORS_MODE mode );
Parameters
GFL_SWAPCOLORS_RBG | 0 |
GFL_SWAPCOLORS_BGR | 1 |
GFL_SWAPCOLORS_BRG | 2 |
GFL_SWAPCOLORS_GRB | 3 |
GFL_SWAPCOLORS_GBR | 4 |
Return value
The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.