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:

LColor::Convert, Class Members

Topics:

Conversion Process

 

Raster Image Functions: Color Conversion

Example

L_INT LColor_IsValidExample() 
{ 
   L_INT nRet = 0; 
   LColor clr /*Color Conversion class object*/; 
   /* initialize the color conversion object*/ 
   nRet = clr.Initialize(CCS_CMYK,CCS_RGB,NULL); 
   if(nRet !=SUCCESS) 
      return nRet; 
   /* Check first the object*/ 
   nRet = clr.IsValid(); 
   if(nRet !=SUCCESS) 
      return nRet; 
   /* free the conversion */ 
   nRet = clr.Free(); 
   if(nRet !=SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Color Conversion C++ Class Library Help