SaveFileCMYKArray method (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short SaveFileCMYKArray(BSTR bstrFileName, long nFormat, long nBitsPerPixel, long nQFactor, long uFlags, VARIANT_BOOL bSavePlanar);

Overview

Refer to Handling CMYK Files as Separate Bitmaps

Remarks

Saves an array of bitmaps as a CMYK TIFF file.

This method saves a CMYK file without performing a color conversion. Each raster bitmap in the array that is specified by the CMYKRaster property will contain one of the C (cyan), M (magenta), Y (yellow), K (black), or Alpha planes. The Alpha plane is optional. The CMYKRaster property should have:

image\sqrblit.gif 4 elements if no Alpha information is included

or

image\sqrblit.gif 5 elements if the Alpha information is included

CMYK TIFF files can be saved as planar (each bitmap in its own plane) or chunky (the data from all the bitmaps is interleaved while saving). Planar images will be saved faster, while chunky images are more compatible (some TIFF readers will not read planar files) and require less memory during the load process. The default is to save chunky files. To save a file as planar, pass TRUE to bSavePlanar.

To load the array of bitmaps, use the LoadFileCMYKArray method.

To save the array of bitmaps to a file format not supported by this function, call the ColorMerge method to create a BGR bitmap and save the generated bitmap using the Save method.

See Also

Elements:

CMYKRaster property, CMYKRasterCount property, LoadFileCMYKArray method, RasterIO property, EnablePaintCMYKArray property

Topics

Raster Images: Saving Files