gflAdjust

GFL SDK

gflAdjust

The gflAdjust function allows to adjust brightness, contrast & gamma of a picture.

GFL_ERROR gflAdjust(
  GFL_BITMAP * src,  

GFL_BITMAP ** dst,
GFL_INT32 brightness,
GFL_INT32 contrast,
double gamma );

Parameters

    src
    Pointer to a GFL_BITMAP structure.
    dst
    Address of a pointer to a GFL_BITMAP structure.
    NULL if on the same instance.
    brightness
    An integer between -255 and 255.
    contrast
    An integer between -127 and 127.
    gamma
    A number between 0.01 and 5.

Return value

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

See also