You may want to convert a file from one format to another. You can do this by saving the original file to its desired format by setting the nFormatType parameter to the appropriate value in the saving method. For more information on converting issues, see the section Loading and Saving.
When saving a file to another format, remember to ensure that the desired file format is supported for that image. For example, you cannot convert an 8-bit DCX file to an 8-bit CAL file, because the CAL format does not support 8-bit files.
In the following table, the columns underneath the numbers indicated size in bits that can actually be saved (written). In each cell, a value of "R" indicates read-only support, and a value of "RW" indicates that ImageGear reads and writes the corresponding file format.
Format |
1 |
4 |
8 |
9-16 |
24 |
32 |
36 |
48 |
64 |
Notes |
BMP |
RW |
RW |
RW |
RW |
RW |
R |
|
|
|
|
CLP |
RW |
RW |
RW |
|
RW |
|
|
|
|
|
CUR |
RW |
RW |
RW |
|
|
RW |
|
|
|
Also supports Extra ((1, 3, 4, 8)*2)-bit images. |
DIB |
RW |
RW |
RW |
R |
RW |
R |
|
|
|
|
DNG |
|
|
|
R |
|
|
|
R |
|
|
GIF |
RW |
RW |
RW |
|
|
|
|
|
|
|
JPEG |
|
|
RW |
RW |
RW |
RW |
RW |
RW |
|
8-bit grayscale. |
PDF |
RW |
RW |
RW |
|
RW |
RW |
|
|
|
|
PNG |
RW |
RW |
RW |
RW |
RW |
RW |
|
RW |
RW |
Supports 48(RGB)- and 64(RGB+alpha)-bit images. |
PS |
RW |
RW |
RW |
|
RW |
RW |
|
|
|
|
RAW |
R |
R |
R |
R |
R |
R |
|
R |
R |
|
TIFF |
RW |
RW |
RW |
RW |
RW |
RW |
RW |
RW |
RW |
Read only supports 3- and 6- bpp for RGB and LAB color spaces for Deflate Compression, LZW (Lempel-Ziv-Welch) Compression, Packbits Compression and uncompressed. |