This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, May 22, 2008 1:05:11 PM(UTC)
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
#2
Posted
:
Sunday, May 25, 2008 8:11:18 AM(UTC)
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.