gflAutoCrop

GFL SDK

gflAutoCrop

The gflAutoCrop function performs a automatic crop on a picture.

GFL_ERROR gflAutoCrop(
  GFL_BITMAP * src,  

GFL_BITMAP ** dst,
const GFL_COLOR * color,
GFL_INT32 tolerance );

Parameters

    src
    Pointer to a GFL_BITMAP structure.
    dst
    Address of a pointer to a GFL_BITMAP structure.
    NULL if on the same instance.
    color
    Pointer to a GFL_COLOR structure used to set the background color to search.
    Can be NULL, the background color is the color at x=0, y=0.
    tolerance
    Color tolerance.

Return value

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

See also