// ==========================================================
// FreeImage 3 .NET wrapper
// Original FreeImage 3 functions and .NET compatible derived functions
//
// Design and implementation by
// - Jean-Philippe Goerke (jpgoerke@users.sourceforge.net)
// - Carsten Klein (cklein05@users.sourceforge.net)
//
// Contributors:
// - David Boland (davidboland@vodafone.ie)
//
// Main reference : MSDN Knowlede Base
//
// This file is part of FreeImage 3
//
// COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
// THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE
// OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED
// CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT
// THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
// SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL
// PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER
// THIS DISCLAIMER.
//
// Use at your own risk!
// ==========================================================
// ==========================================================
// CVS
// $Revision: 1.3 $
// $Date: 2011/12/22 14:53:28 $
// $Id: FREE_IMAGE_SAVE_FLAGS.cs,v 1.3 2011/12/22 14:53:28 drolon Exp $
// ==========================================================
namespace FreeImageAPI
{
///
/// Flags used in save functions.
///
[System.Flags]
public enum FREE_IMAGE_SAVE_FLAGS
{
///
/// Default option for all types.
///
DEFAULT = 0,
///
/// Save with run length encoding.
///
BMP_SAVE_RLE = 1,
///
/// Save data as float instead of as half (not recommended).
///
EXR_FLOAT = 0x0001,
///
/// Save with no compression.
///
EXR_NONE = 0x0002,
///
/// Save with zlib compression, in blocks of 16 scan lines.
///
EXR_ZIP = 0x0004,
///
/// Save with piz-based wavelet compression.
///
EXR_PIZ = 0x0008,
///
/// Save with lossy 24-bit float compression.
///
EXR_PXR24 = 0x0010,
///
/// Save with lossy 44% float compression - goes to 22% when combined with EXR_LC.
///
EXR_B44 = 0x0020,
///
/// Save images with one luminance and two chroma channels, rather than as RGB (lossy compression).
///
EXR_LC = 0x0040,
///
/// Save with superb quality (100:1).
///
JPEG_QUALITYSUPERB = 0x80,
///
/// Save with good quality (75:1).
///
JPEG_QUALITYGOOD = 0x0100,
///
/// Save with normal quality (50:1).
///
JPEG_QUALITYNORMAL = 0x0200,
///
/// Save with average quality (25:1).
///
JPEG_QUALITYAVERAGE = 0x0400,
///
/// Save with bad quality (10:1).
///
JPEG_QUALITYBAD = 0x0800,
///
/// Save as a progressive-JPEG (use | to combine with other save flags).
///
JPEG_PROGRESSIVE = 0x2000,
///
/// Save with high 4x1 chroma subsampling (4:1:1).
///
JPEG_SUBSAMPLING_411 = 0x1000,
///
/// Save with medium 2x2 medium chroma (4:2:0).
///
JPEG_SUBSAMPLING_420 = 0x4000,
///
/// Save with low 2x1 chroma subsampling (4:2:2).
///
JPEG_SUBSAMPLING_422 = 0x8000,
///
/// Save with no chroma subsampling (4:4:4).
///
JPEG_SUBSAMPLING_444 = 0x10000,
///
/// On saving, compute optimal Huffman coding tables (can reduce a few percent of file size).
///
JPEG_OPTIMIZE = 0x20000,
///
/// save basic JPEG, without metadata or any markers.
///
JPEG_BASELINE = 0x40000,
///
/// Save using ZLib level 1 compression flag
/// (default value is ).
///
PNG_Z_BEST_SPEED = 0x0001,
///
/// Save using ZLib level 6 compression flag (default recommended value).
///
PNG_Z_DEFAULT_COMPRESSION = 0x0006,
///
/// save using ZLib level 9 compression flag
/// (default value is ).
///
PNG_Z_BEST_COMPRESSION = 0x0009,
///
/// Save without ZLib compression.
///
PNG_Z_NO_COMPRESSION = 0x0100,
///
/// Save using Adam7 interlacing (use | to combine with other save flags).
///
PNG_INTERLACED = 0x0200,
///
/// If set the writer saves in ASCII format (i.e. P1, P2 or P3).
///
PNM_SAVE_ASCII = 1,
///
/// Stores tags for separated CMYK (use | to combine with compression flags).
///
TIFF_CMYK = 0x0001,
///
/// Save using PACKBITS compression.
///
TIFF_PACKBITS = 0x0100,
///
/// Save using DEFLATE compression (a.k.a. ZLIB compression).
///
TIFF_DEFLATE = 0x0200,
///
/// Save using ADOBE DEFLATE compression.
///
TIFF_ADOBE_DEFLATE = 0x0400,
///
/// Save without any compression.
///
TIFF_NONE = 0x0800,
///
/// Save using CCITT Group 3 fax encoding.
///
TIFF_CCITTFAX3 = 0x1000,
///
/// Save using CCITT Group 4 fax encoding.
///
TIFF_CCITTFAX4 = 0x2000,
///
/// Save using LZW compression.
///
TIFF_LZW = 0x4000,
///
/// Save using JPEG compression.
///
TIFF_JPEG = 0x8000
}
}