Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: ASP.NET 2 and LEAD 13 (Server-side)
Started by drdwilcox at 05-22-2008 18:10. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  05-22-2008, 18:10
drdwilcox is not online. Last active: 5/22/2008 11:04:59 PM drdwilcox

Not Ranked
Joined on 05-22-2008
Posts 1
ASP.NET 2 and LEAD 13 (Server-side)
Reply Quote
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

   Report 
  05-25-2008, 13:16
Adam Boulad is not online. Last active: 10/9/2008 4:18:21 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 425
Re: ASP.NET 2 and LEAD 13 (Server-side)
Reply Quote

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);
//--------------------------


Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » General » Example Request... » Re: ASP.NET 2 and LEAD 13 (Server-side)

Powered by Community Server, by Telligent Systems