Image Resizing in ASP.Net 2.0

A

Alok Shukla

Hello,

I am working in an application where I need to increase the image resolution.

Suppose if the user provides an image of height and width 150 x 100, I want to increase the image size to some 400 x 350 and save it.

I have searched many articles but they all are for decreasing the image size. Some are there but they are plug-ins. I don’t want to use any plug-in.
I want to achieve this through code. Please guide me in this.

I am using ASP.Net 2.0 with C#.

Thanks in advance,
Alok
 
C

Ciaran O''Donnell

Create a new bitmap of the required size and DrawImage() on its graphics (got
by calling CreateGraphics() I believe) passing 0,0 as the location and the
full size as the height and width.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top