ColorPlanes property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

LEADTyp::TBitmapHandle ColorPlanes [int nIndex]

Delphi Syntax

ColorPlanes [nIndex:Integer]: TBitmapHandle

Overview

Refer to Managing Color Separations.

Remarks

Is the array of grayscale bitmaps created by the ColorSeparate method.

You can merge the bitmaps in the array by using the ColorMerge method. The separations follow the color order of the image data. In most cases, this is the same as the abbreviation of the color-plane model. For example, in a CMYK separation, ColorPlanes[0] is the cyan plane. The only exception is RGB, where the image data is usually stored as blue-green-red, and ColorPlanes[0] is the blue plane.

You can use the Assignment operator to copy a separation bitmap to or from a Main Control. For example, in Delphi:

Lead2.Bitmap := Lead1.ColorPlanes[0]

You can also free a separation bitmap from memory by assigning it a value of 0.

See Also

Topics:

Raster Images: Doing Color Space Conversions

 

Examining and Altering Bitmaps