LColor::IsValid
#include "ltwrappr.h"
L_INT LColor::IsValid();
Determines whether the color conversion class object is valid to the conversion process.
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This function is useful for checking the validity of some conversion class objects when using multiple converters.
Required DLLs and Libraries
LTCLR For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
|
Topics: |
|
|
Example
L_VOID DoConvert(LColor& clr, L_UCHAR *pInput, L_UCHAR *pOutput, L_INT nWidth, L_INT nHeight)
{
L_INT nRet = 0 ; /* return error code*/
/* Check first the object*/
nRet = clr.IsValid();
if(nRet != SUCCESS)
return ;
/* Convert the image buffer */
nRet = clr.Convert (pInput, /*input buffer*/
pOutput,/*output buffer*/
nWidth, /*pixels width*/
nHeight, /*pixels height*/
0, /* 0 bytes align*/
0); /*0 bytes align*/
}