Description

The number of channels, or bands, per pixel.

Property type

A Long value.  

Syntax

object.NumberOfChannels [= value]

The NumberOfChannels Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McImageType.
valueA Long value.

Remarks

For example, an RGB image should have 3 channels. Use 0 to indicate a “don't care” condition.

Note that the properties are not verified in context with each other, also there is no interaction -- setting the McImageType object to Monochrome does not set NumberOfChannels to one; the client must explicitlly do it.

Exceptions

E_POINTER implies the argument pointer is invalid. E_INVALIDARG indicates the client is attempting to set the property to an invalid value.