Jump to content

Use APIs to resize an image


Recommended Posts

Can I use Paint.NET APIs to resize an image and save ? Basically, I am trying to develop an online album feature using ASP.NET and C# and need to reduce the size of images programmatically if the uploaded image is too large. Do you have any C#/VB.NET sample code on how to achieve this ?

- Tony

Link to comment
Share on other sites

What's wrong with:

Bitmap newsizedbitmap = new Bitmap(oldbitmap, new Size(int x, int y);

or something like it

and then ofcourse save it with the right filetype..

or did I miss something?

I would write plugins, if I knew what kind of plugins were needed.. :(

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...