473,395 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Image Resizing in ASP.Net 2.0

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

Sep 18 '08 #1
2 1169
I don't understand. A thumbnail is just an image resized to smaller
dimensions, why not use the same code to resize to a larger size?

http://www.howtodothings.com/compute...humbnails.html

Pete

Sep 18 '08 #2
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.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alok Shukla" wrote:
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

Sep 18 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Zahid Khan | last post by:
I need little help in my situation. I am reading a graphic file (jpg) from disk and then resizing it and save resized image. What happens, it gets blured, I want to retain same quality so that...
10
by: David W. Simmonds | last post by:
I have a DataList control that has an Image control in the ItemTemplate. I would like to resize the image that goes into that control. I have a series of jpg files that are full size, full...
9
by: kombu67 | last post by:
I'm reading a series of images from a MS SQL table and saving them to directory. These are staff ID pictures from our security card app. Once I've extracted the ID photo from the security app to...
10
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
11
by: shapper | last post by:
Hello, I am displaying an image on a few pages. The image size is 50 px height and 50 px width. In some pages I need the image to be 30x30 px in others 40x40 px and in others 50x50px. Can I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.