Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

ColorSeperate returns -2098
Started by mbrims at 08-26-2008 3:08. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  08-26-2008, 3:08
mbrims is not online. Last active: 8/26/2008 7:58:44 AM mbrims

Not Ranked
Joined on 08-26-2008
Posts 1
ColorSeperate returns -2098
Reply Quote
Hi,
This example in the manual compiles and runs, but ColorSeparate returns -2098 (Ltimgclr dll not loaded).
I'm using VC++ 6.0 and I've copied the required dll from the lead tools 15 folder  to the program's exe folder.
Please help!


L_INT LBitmap__ColorSeparateExample()
{
   L_INT nRet;
   LBitmap LeadBitmap; /* Bitmap handle to hold the loaded image */
   LBitmap ColorPlanes[4]; /* Array of bitmap handles */
   /* load an image */
   nRet =LeadBitmap.Load(TEXT("C:\\Program Files\\LEAD Technologies\\LEADTOOLS 15\\Images\\image1.cmp"));
   if(nRet !=SUCCESS)
      return nRet;
   /* Separate the color planes */
   nRet =LeadBitmap.ColorSeparate(ColorPlanes, sizeof(BITMAPHANDLE), COLORSEP_CMYK);
   if(nRet !=SUCCESS)
      return nRet;
   /* Free the bitmap */
   LeadBitmap.Free();
   /* Merge the color planes */
   nRet =LeadBitmap.ColorMerge(ColorPlanes, sizeof(BITMAPHANDLE), COLORSEP_CMYK);
   if(nRet !=SUCCESS)
      return nRet;
   /* Free the bitmaps used for color planes */
   ColorPlanes[0].Free();
   ColorPlanes[1].Free();
   ColorPlanes[2].Free();
   ColorPlanes[3].Free();
  
   return SUCCESS;
}

   Report 
  08-26-2008, 9:50
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: ColorSeperate returns -2098
Reply Quote

This error means "ltimg dll not loaded". Did you load LEADTOOLS library DLLs at run-time to your application using the LSettings::LoadLibraries function?

Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Color Conversio... » ColorSeperate returns -2098

Powered by Community Server, by Telligent Systems