Difference between revisions of "GFL Misc."
From XnView Wiki
(Created page with 'gflGetNumberOfColorsUsed The gflGetNumberOfColorsUsed gets the total unique colors of a picture. GFL_UINT32 gflGetNumberOfColorsUsed( GFL_BITMAP * src ); Parameters src …') |
|||
Line 1: | Line 1: | ||
gflGetNumberOfColorsUsed | == gflGetNumberOfColorsUsed == | ||
The gflGetNumberOfColorsUsed gets the total unique colors of a picture. | 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 == | |||
gflJpegLosslessTransform | |||
The gflJpegLosslessTransform function applies lossless transformations on a JPEG file. | The gflJpegLosslessTransform function applies lossless transformations on a JPEG file. | ||
GFL_ERROR <b>gflJpegLosslessTransform</b>( | |||
const char* filename, | |||
GFL_LOSSLESS_TRANSFORM transform | |||
); | |||
'''Parameters''' | |||
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 | |||
|} | |||
The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR. | '''Return value''' | ||
:The function returns GFL_NO_ERROR if it is successful or a value of [[Error|GFL_ERROR]]. |
Revision as of 14:23, 24 September 2009
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.