FreeImage Documentation

FreeImage Documentation -Contents Previous Next Up

Advanced save functions

Saving bitmaps using the SaveToHandle functions is almost identical to loading bitmap via the LoadFromHandle functions.

Subsections


FreeImage_SaveBMPToHandle

bool FreeImage_SaveBMPToHandle(void *dib, FreeImageIO *io, fi_handle handle, BMPFlags flags = BMP_DEFAULT);

Saves the FreeImage DIB to a Windows Bitmap file. The BMP file is always saved in the Windows format. No compression is used.

FreeImage_SavePNGToHandle

bool FreeImage_SavePNGToHandle(void *dib, FreeImageIO *io, fi_handle handle, PNGFlags flags = PNG_DEFAULT);

Saves the FreeImage DIB to a PNG file.

FreeImage_SavePNMToHandle

bool FreeImage_SavePNMToHandle(void *dib, FreeImageIO *io, fi_handle handle, PNMFlags flags = PNM_DEFAULT);

Saves the FreeImage DIB to a PNM file. PNM is a descriptive name for a collection of ASCII based bitmap types: PBM, PGM and PPM. If the bitmap has a bitdepth of 1, the file is saved as a PBM file. If the bitmap has a bitdepth of 8, the file is saved as a PGM file. If the bitmap has a bitdepth of 24, the file is saved as a PPM file. Other bitdepths are not supported.

FreeImage_SaveTIFFToHandle

bool FreeImage_SaveTIFFToHandle(void *dib, FreeImageIO *io, fi_handle handle, TIFFFlags flags = TIFF_DEFAULT);

Saves the FreeImage DIB to a TIFF file.


Copyright 2000 Floris van den Berg (freeimage@wxs.nl)