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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, November 21, 2006 10:20:22 AM(UTC)

marciak  
marciak

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

 

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 : Wednesday, November 22, 2006 12:14:55 AM(UTC)

Bashar  
Guest

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)

marciak  
marciak

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)

GregR  
GregR

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.

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