ConvertColorSpace  Method

Description         This method will convert the color values in the input buffer specified by the color format. You should allocate enough memory for input and output buffer.

Syntax                 RetVal = [BIImage.]ConvertColorSpace  bufferSrc bufferDest Size nFormatSrc nFormatDest bShowProgress hParent

Returns               RetVal                    LONGLONG Returns the number of the converted color values. If any error occurs the GetLastColorConvertError function will be retrieves the error code.

Remarks             bufferSrc               Short*             Pointer to the input buffer.

                            bufferDest             Short*             Pointer to the output buffer.

                            Size                         Long                Number of elements of the input buffer.

                            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, ConvertDIBColorSpace Method