getNumDeviceNChannels

Get number of color channels in DeviceN image.
getNumDeviceNChannels([out, retval] int *numChannels)
This function returns the number of color channels generated by the last call to convertPageToDeviceNImage. There will always be at least four channels (for the process colors, cyan, magenta, yellow, and black). There will be additional channels for any custom (spot) colors used on the page.
VB6:
rast.convertPageToDeviceNImage page, dpi nChannels = rast.getNumDeviceNChannels For i = 0 To nChannels-1 channelName = rast.getDeviceNChannelName(i) channelCMYK = rast.getDeviceNChannelCMYK(i) pic = rast.getDeviceNPicture(i) ' each channel has an 8-bit grayscale bitmap, similar to what ' is returned by convertPageToPicture in imageGray mode ... Next i rast.clearDeviceNImage
convertPageToDeviceNImage
getDeviceNChannelName
getDeviceNChannelCMYK
getDeviceNPicture
clearDeviceNImage