Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, December 1, 2005 1:32:31 PM(UTC)


Groups: Registered
Posts: 1

Hi, after trying many different ways to save a file, I keep getting the same error (-16 ERROR_FEATURE_NOT_SUPPORTED). What I'm trying to do is initialize an LBitmapBase and convert a DIB then save it as a compressed tiff. The bitmap in memory is a bitonal bitmap. I am using the latest evaluation version. Here is the code:


ret = LBase::LoadLibraries(LT_KRN | LT_DIS | LT_FIL);

//Declare and load the bitmap from memory
LBitmapBase LeadBitmap;
ret = LeadBitmap.ConvertFromDIB(images.bitonalImageBuffer.buf.lpBitmapInfo, images.bitonalImageBuffer.buf.ptr );
if (ret > 0)
printf("\tSuccess %hi\n",ret);
printf("\tError %hi\n",ret);

//Save the bitmap
L_INT format=FILE_BMP;
L_INT bpp=1;
L_INT qfactor =0;
ret = LeadBitmap.Save(TiffFilename,format ,bpp,qfactor,0); //<-- Here is where I get the -16 error.

(ret > 0)
printf("\tSuccess %hi\n",ret);
printf("\tError %hi\n",ret);

LBase::UnloadLibraries(LT_KRN | LT_DIS | LT_FIL);


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, December 5, 2005 1:58:51 PM(UTC)


Groups: Registered, Tech Support
Posts: 46

90% of the time that error occurs on save because there is a missing LF???14n.dll (or LF???14e.dll in the case of an eval). In the help file, look for a topic, Files to be included with your Application. Make sure you have all of the LF DLL's for the format you are trying to save in the same folder as the LTFIL DLL is being loaded.


Developer Support
LEAD Technologies, Inc.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.060 seconds.