This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 21, 2006 10:20:22 AM(UTC)
Groups: Registered
Posts: 2
I have the evaluation version and am trying to load an image (jpg) and save it as a pcx file.
I have looked in the help file and tried using the example in the for the RasterCodecs Load Method but receive an Invalid File Format error message. I am able to load and save an image in the Main demo program. We need to be able to load the image and save it to pcx format with no UI. We are using .NET (VB or C#).
I do not see a CodecsPath to set and what is the "Filter DLL directory"?
Thanks
Edited by moderator Thursday, October 13, 2016 5:17:44 PM(UTC)
| Reason: Not specified
#2
Posted
:
Wednesday, November 22, 2006 12:14:55 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You need to add references to the following DLLs to your project:
Leadtools.Codecs.Cmp.dll
Leadtools.Codecs.Pcx.dll
You need to do this for every file format you want to load or
save. Every supported file format requires adding one or more
similar DLLs to your project.
The CodecsPath property was removed from v15.
#3
Posted
:
Wednesday, November 22, 2006 5:07:05 AM(UTC)
Groups: Registered
Posts: 2
Thanks for the response. That solved that problem, but is there a way to convert the image to black and white?
Thanks
#4
Posted
:
Wednesday, November 22, 2006 5:37:13 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Yes, when you Load the image, set the BitsPerPixel parameter to 1.
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.