Description This method will convert the color of pixels of the input DIB. The input DIB must be 24 bit per pixel except for CMYK color space. If the nFormatSrc is CMYK, the input DIB must be 32 bit per pixel. If the nFormatDest is CMYK, the output DIB will be 32 bit per pixel.
Syntax RetVal = [BIImage.]ConvertDIBColorSpace hDib nFormatSrc nFormatDest bShowProgress hParent
Returns RetVal LONGLONG The handle of new converted DIB, 0 if an error occurred. If any error occurs the GetLastColorConvertError function will be retrieves the error code.
Remarks hDib LONGLONG Handle of the image to convert.
nFormatSrc Long Color space format of the input DIB. If this parameter is not valid, the method returns 0.
nFormatDest Long Color space format of the output DIB. If this parameter is not valid, the method returns 0.
bShowProgress BOOL This parameter specifies the displaying of the progressbar.
hParent LONGLONG Handler of the parent window.
Available Color Space Formats:
CFRGB
CFYUV
CFCMY
CFCMYK
CFYIQ
CFHSV
CFHSI
CFXYZ
CFLAB
See Also GetLastColorConvertError Method, ConvertColorSpace Method