Description This method will modify the CMYK levels of the image. This function works for only 24 bit per pixel images.
Examples
The original 900 x 1300 sized color image and the filtered image with cyan = -80, magenta = -7, yellow = 19 and black = -39 parameter values.
Syntax RetVal = [BIIMAGE.]ColorCMYKLevels hDib cyan magenta yellow black iShowProgress hWnd
Returns RetVal LONGLONG The handle of new DIB, 0 if an error occurred.
Remarks hDib LONGLONG Handle of the source image.
cyan short The method increases with “cyan” percents the cyan values of the pixels [-100 - 100].
magenta short The method increases with “magenta” percents the magenta values of the pixels [-100 - 100].
yellow short The method increases with “magenta” percents the magenta values of the pixels [-100 - 100].
black short The method increases with “black” percents the black values of the pixels [-100 - 100].
iShowProgress Long This parameter specifies the displaying of the progressbar and the preview dialog.
Available values:
DISPLAY_NONE (0) - The progressbar and the preview dialog will not display before filtering.
DISPLAY_PROGRESS (1) - The progressbar will display during filtering procedure.
DISPLAY_DIALOG (2) - The preview dialog will display before filtering. This dialog shows the part of the image before and after filtering.
DISPLAY_BOTH (3) - The progressbar and the preview dialog will display.
IMPORTANT: The preview dialog will only display, if there is BIDlgs32.dll installed.
hParent LONGLONG Handler of the parent window to display preview dialog.
The method will not free the input DIB.
See Also