Actions

GFL Misc.

From XnView Wiki

gflGetNumberOfColorsUsed

The gflGetNumberOfColorsUsed gets the total unique colors of a picture.

GFL_UINT32 gflGetNumberOfColorsUsed(
  GFL_BITMAP* src
);

Parameters

src
Pointer to a GFL_BITMAP structure.

Return value

Total unique colors.


gflJpegLosslessTransform

The gflJpegLosslessTransform function applies lossless transformations on a JPEG file.

GFL_ERROR gflJpegLosslessTransform(
  const char* filename,  
  GFL_LOSSLESS_TRANSFORM transform
);

Parameters

filename
Pointer to a null-terminated string that contains the filename to modify.
transform
Transformation
GFL_LOSSLESS_TRANSFORM_ROTATE90 Rotate of 90 degrees
GFL_LOSSLESS_TRANSFORM_ROTATE180 Rotate of 180 degrees
GFL_LOSSLESS_TRANSFORM_ROTATE270 Rotate of 270 degrees
GFL_LOSSLESS_TRANSFORM_VERTICAL_FLIP Vertical flip
GFL_LOSSLESS_TRANSFORM_HORIZONTAL_FLIP Horizontal flip

Return value

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