473,399 Members | 2,478 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,399 software developers and data experts.

Resize Graphic Images II

Okay, I figured out how to resize an image by creating a new bitmap and
specifying the new size when I do.

I don't suppose there's any support for resizing with anti-aliasing so that
I get a smoother image is there? Any tips?

Thanks.

Jonathan

Jul 22 '07 #1
2 1631
On Sun, 22 Jul 2007 11:13:46 -0700, Jonathan Wood <jw***@softcircuits.com>
wrote:
Okay, I figured out how to resize an image by creating a new bitmap and
specifying the new size when I do.

I don't suppose there's any support for resizing with anti-aliasing so
that I get a smoother image is there? Any tips?
Yes (ignoring for the moment any semantic difference between
"anti-aliasing" and "interpolation" :) ).

Create a new empty Bitmap rather than using one Bitmap as the source for
another, get a Graphics instance from that Bitmap, set the interpolation
quality you want on the Graphics instance, and use Graphics.DrawImage() to
render the original bitmap into the new Bitmap.

Pete
Jul 22 '07 #2
Peter,
>Okay, I figured out how to resize an image by creating a new bitmap and
specifying the new size when I do.

I don't suppose there's any support for resizing with anti-aliasing so
that I get a smoother image is there? Any tips?

Yes (ignoring for the moment any semantic difference between
"anti-aliasing" and "interpolation" :) ).
Thanks for the correction.
Create a new empty Bitmap rather than using one Bitmap as the source for
another, get a Graphics instance from that Bitmap, set the interpolation
quality you want on the Graphics instance, and use Graphics.DrawImage() to
render the original bitmap into the new Bitmap.
I didn't quite follow every bit of that but I'll bet I can figure it out
from your description. And I'm thrilled that this can actually be done!

Thanks!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jul 22 '07 #3

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

Similar topics

1
by: Dean | last post by:
First I've must say Im completly new in php scripting What I need to do is upload, resize pictures with path in database Here is theory of it, and plan of doing it Hope somebody can help me...
0
by: Dave Veeneman | last post by:
I'm creating a custom control that uses the OnPaint event to paint a graphic. The graphic needs to resize itself when the control is resized. Right now, I'm trapping the Resize event to trigger the...
14
by: Rudy | last post by:
Hello all! I been trying to get a handle with Images. I have learned alot from the fine people here. So, I also learned that thumbnail images look terrible taken from a digital cam. I know why...
7
by: chad | last post by:
is it just me or does anybody else find the Image.RotateFlip method kind of slow? (I'm comparing to commercial softwares). Same for resizing. I'm using sourceImage =...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
1
by: Jonathan Wood | last post by:
Greetings, Do the .NET libraries include routines to load, resize, and save a graphics file? If so, where would I find these routines? Thanks. -- Jonathan Wood SoftCircuits Programming
3
by: Danny Ni | last post by:
Hi, I am looking for a way to display images with different aspect ratio into frames with fixed width and height, the problem is some images will look distorted if they are forced into fixed...
2
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help...
3
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.