gflResizeCanvas

GFL SDK

gflResizeCanvas

The gflResizeCanvas function allows to resize the canvas of a picture.

GFL_ERROR gflResizeCanvas(
  GFL_BITMAP * src,  

GFL_BITMAP ** dst,
GFL_INT32 width,
GFL_INT32 height,
GFL_CANVASRESIZE mode,
const GFL_COLOR * color );

Parameters

    src
    Pointer to a GFL_BITMAP structure.
    dst
    Address of a pointer to a GFL_BITMAP structure.
    NULL if on the same instance.
    width
    New width.
    height
    New height.
    mode
    GFL_CANVASRESIZE_CENTERCenter
    GFL_CANVASRESIZE_TOPLEFTTop-Left
    GFL_CANVASRESIZE_TOPRIGHTTop-Right
    GFL_CANVASRESIZE_BOTTOMLEFTBottom-Left
    GFL_CANVASRESIZE_BOTTOMRIGHTBottom-Right
    color
    Pointer to a GFL_COLOR structure to receive the background color.

Return value

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

See also