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 : Thursday, May 22, 2008 1:05:11 PM(UTC)
drdwilcox

Groups: Registered
Posts: 1


I need to know how to use the LEAD 13 OCX control with .NET 2.0 and Visual Studio C#. What I need to do is simply convert a Tiff image into a JPEG which I then show on the web. I need to do the conversion on the server-side so that our clients do not need anything special to view the images.

What is the correct syntax to use the V13 control, and make the needed calls to Load() and SaveMemory() to make this happen?

Thank you,

Don
 

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 : Sunday, May 25, 2008 8:11:18 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


Don,




If
the application has a Windows Form, simply draw the Main LEAD control on the form in design time and build your application.






In
your case, since it's an ASP.NET project, you won't probably have a form, so your code should be something like this:
//--------------------------
LEADLib.LEAD LEAD1 = new LEADLib.LEAD();


LEAD1.Load(@"c:\Temp\clean.tif", 0, 0, 1);


LEAD1.Save(@"c:\temp\image20.jpg",
(short)LEADLib.FileConstants.FILE_JFIF, 24, 2, (short)LEADLib.SaveModifyConstants.SAVE_OVERWRITE);
//--------------------------

 
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.044 seconds.