Converts image data in a buffer from one color conversion model to another.
#include "ltwrappr.h"
L_INT LColor::Convert(pSrc, pDst, nWidth, nHeight, nInAlign, nOutAlign);
Pointer to the buffer that references the input data.
Pointer to the buffer to be updated with the converted data.
Width of pixels to be processed.
Height of pixels to be processed.
Each scanline in the input buffer is a multiple of nInAlign bytes.
Each scanline in the output buffer is a multiple of nOutAlign bytes.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Conversion is done by setting the nActiveMethod value of the CONVERSION_PARAMS structure when calling LColor::Initialize. To change the nActiveMethod value, use LColor::SetConversionParams. Only methods supported by the initialized converter should be specified.
For an example, refer to LColor::Initialize.