C2BW_Convert
Changes the color depth of an image according to the conversion settings specified by using C2BW_SetAttributes.
Syntax
bool C2BW_Convert(sParam)
Parameters
C2BW_Convert always produces a TIF image. If the source image has a TIF extension, use this parameter to provide an extension to use for a backup of the original file.If not provided, the parameter defaults to tio. If the source image does not have a TIF extension, this parameter is ignored and use a TIF extension and the original image name will not be changed.
Smart parameters are supported.
Returns
Always True.Level
All Levels.Details
Changes the color depth of an image based on a set of defined attributes, creating a new TIF image.If action C2BW_SetAttributes is not called first, a black and white image will be created.
If called at the batch level converts all images. If called at the document level, images within the document are converted. If called on the page, or field level the page is converted.
The supported input image formats are TIF (including LZW compression), PNG, BMP and JPG.
- Example
C2BW_SetAttributes("1","0","3") C2BW_Convert("tic")