writeDeviceNToRGBBitmap

Convert a DeviceN image to RGB and write to an image file.
writeDeviceNToRGBBitmap([in] int format, [in] BSTR fileName)
This function converts the DeviceN bitmap generated by the last call to convertPageToDeviceNImage to RGB, and then writes it to an image file.

This function is very similar to getDeviceNToRGBBitmap, except that it writes the image to disk, rather then returning an in-memory bitmap.

The format and fileName arguments are the same as for writePageBitmap.

By default, this function will generate the same image as writePageBitmap in imageDevNToRGB mode. The difference is that individual color channels can be removed with removeDeviceNChannel.

C#:
rast.convertPageToDeviceNImage(page, dpi); int nChannels = rast.getNumDeviceNChannels(); for (int i = 0; i < nChannels; ++i) { string channelName = rast.getDeviceNChannelName(i); if (....) { rast.removeDeviceNChannel(i); } } rast.writeDeviceNToRGBBitmap(rast.imageFilePNG, "out.png"); rast.clearDeviceNImage()
convertPageToDeviceNImage
removeDeviceNChannel
clearDeviceNImage
getDeviceNToRGBBitmap
getDeviceNToRGBPicture