08-26-2008, 3:08
|
mbrims
Joined on 08-26-2008
Posts 1
|
ColorSeperate returns -2098
|
 
 
|
|
|
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
|
|
|
|