setDeviceNChannelCMYK
Replace the CMYK value associated with a DeviceN channel.
setDeviceNChannelCMYK([in] int channelIdx, [in] DWORD cmyk)
This function replaces the CMYK color associated with DeviceN channel
#
channelIdx
. The new CMYK value will be used in
subsequent calls to getDeviceNToRGBPicture
,
getDeviceNToRGBBitmap
and writeDeviceNToRGBBitmap
.
The CMYK argument is a 32-bit integer, with one byte per CMYK
component: 0xCCMMYYKK
.
Use getNumDeviceNChannels
, getDeviceNChannelName
, and
getDeviceNChannelCMYK
to examine the available channels.
C#:
rast.convertPageToDeviceNImage(page, dpi);
// change channel 4 to 100% magenta
rast.setDeviceNChannelCMYK(4, 0x00ff0000);
rast.writeDeviceNToRGBBitmap(rast.imageFilePNG, "out.png");
rast.clearDeviceNImage()