LEADTOOLS Support
General
General Questions
DeletePage method throws Feature Not Supported - Missing DLL?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, October 16, 2007 5:29:57 AM(UTC)
Groups: Registered
Posts: 29
The problem Im having is that on certain color tiff files when I call codecs.DeletePage(...) (LT v14.5) I get a feature not supported exception. This only happens on certain files... on all other files deletepage works just fine.
I am sure that I am calling the unlock. Could this be happening because I am missing some dlls or a reference? If so what am I missing.
(I am attaching the file that is giving me problems. Whenever I insert this page into another file and then try to call delete page on the page I inserted this in I get the error.)
#2
Posted
:
Tuesday, October 16, 2007 5:32:01 AM(UTC)
Groups: Registered
Posts: 29
It didnt let me upload the file at first because the extension was wrong... uploading it here... just change the extension back to .tif to view.
#3
Posted
:
Tuesday, October 16, 2007 7:17:41 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Just include the tif in a zip file and upload it here. Also, make sure that you do not preview your post as this will discard the attachment. If this does not work you can send an email to
support@leadtools.com with the attachment and please refer to this post.
#4
Posted
:
Tuesday, October 16, 2007 10:22:39 AM(UTC)
Groups: Registered
Posts: 29
#5
Posted
:
Tuesday, October 16, 2007 11:28:43 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Here is my code:
RasterCodecs.CodecsPath = @"C:\Program Files\LEAD Technologies, Inc\LEADTOOLS .NET 14.5\Bin\Dotnet\v20";
RasterCodecs codecs = new RasterCodecs();
IRasterImage second = codecs.Load("c:\\FirstIteration.tif");
codecs.Save(second, "c:\\adjusted.tif", RasterImageFormat.Tif, 24, 1, 1, 3, CodecsSavePageMode.Append);
codecs.DeletePage("c:\\adjusted.tif", 2);
This code runs fine. Could you send me a small demo project which exhibits the error on your end so I can see if you are doing anything wrong? Make sure to zip up the attachment.
#6
Posted
:
Wednesday, October 17, 2007 6:05:26 AM(UTC)
Groups: Registered
Posts: 29
I figured out what it was.... See the difference between my code and your code is that you are forcing the save format to be Tif but I cant do that because of using multiple file formats so I try to save as the original format.
The original format for the image I attached is .Exif Im not really sure what format that is but if I check for it and then modify that page's save format to tif everything works fine.
#7
Posted
:
Wednesday, October 17, 2007 6:38:53 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Make sure you are referencing the Leadtools.Codecs.Cmp.dll.
LEADTOOLS Support
General
General Questions
DeletePage method throws Feature Not Supported - Missing DLL?
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.