GFL_SAVE_PARAMS
The GFL_SAVE_PARAMS structure contains options for the save of picture.
typedef struct ( GFL_UINT32 Flags, GFL_INT32 FormatIndex, GFL_COMPRESSION Compression, GFL_INT16 Quality, GFL_INT16 CompressionLevel, GFL_BOOL Interlaced, GFL_BOOL Progressive, GFL_BOOL OptimizeHuffmanTable, GFL_BOOL InAscii, GFL_UINT32 Offset, GFL_CORDER ChannelOrder, GFL_CTYPE ChannelType, GFL_WRITE_CALLBACK Write, GFL_TELL_CALLBACK Tell, GFL_SEEK_CALLBACK Seek } GFL_SAVE_PARAMS
Members
- Flags
-
Options
GFL_SAVE_REPLACE_EXTENSION Replace extension by the default format extension GFL_SAVE_ANYWAY Convert picture if colormode can be saved in this format (For example, RGB picture must be converted in 256 colors to save it in GIF) - FormatIndex
- Index of format to be used.
- Compression
-
GFL_NO_COMPRESSION No compression GFL_RLE Packbits GFL_LZW LZW (tiff only) GFL_CCITT_FAX3 Fax Group 3 (tiff only) GFL_CCITT_FAX3_2D Fax Group 3-2D (tiff only) GFL_CCITT_FAX4 Fax Group 4 (tiff only) - Quality
-
Quality of the compression (JPEG)
0: the worst, 100: the best - CompressionLevel
-
Level of compression (PNG).
1: minimum, 7: maximum - Interlaced
- Interlaced mode (GIF).
- Progressive
- Progressive mode (JPEG).
- OptimizeHuffmanTable
- Optimize the Huffman table (JPEG).
- InAscii
- Use the ascii mode (PNM)
- Offset
- For RAW or YUV format, offset of the data start.
- ChannelOrder
-
For RAW format, channel order of components.
GFL_CORDER_INTERLEAVED Interleaved GFL_CORDER_SEQUENTIAL Sequential GFL_CORDER_SEPARATE Separate - ChannelType
-
For RAW format, channel type of components.
GFL_CTYPE_GREYSCALE Greyscale GFL_CTYPE_RGB Red-Green-Blue GFL_CTYPE_BGR Bleu-Green-Red GFL_CTYPE_RGBA Red-Green-Bleu-Alpha GFL_CTYPE_ABGR Alpha-Bleu-Green-Red GFL_CTYPE_CMY Cyan-Magenta-Yellow GFL_CTYPE_CMYK Cyan-Magenta-Yellow-Black - Write
- Pointer to a write user function.
- Tell
- Pointer to a tell user function.
- Seek
- Pointer to a seek user function.
See also