Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bitmap resize!

89 views
Skip to first unread message

Atmapuri

unread,
Jul 16, 2008, 10:08:44 AM7/16/08
to
Hi!

I tried using Bitmpa.Canvas.StretchDraw to resize an image,
but the quality is clearly missing. What would be the next thing
to try?

Thanks!
Atmapuri

Nathanial Woolls

unread,
Jul 16, 2008, 11:27:49 AM7/16/08
to
> I tried using Bitmpa.Canvas.StretchDraw to resize an image,
> but the quality is clearly missing. What would be the next thing
> to try?

Take a look at Graphics32. That was the best, free way we found to resize
images with nice resampling options.

http://graphics32.org

Tom Corey

unread,
Jul 16, 2008, 12:03:32 PM7/16/08
to
Atmapuri wrote:

> I tried using Bitmpa.Canvas.StretchDraw to resize an image,
> but the quality is clearly missing. What would be the next thing
> to try?

If you're concerned with printing them, take a look at
http://www.code4sale.com/joehecht/prndib.htm

I used it in a project, and it was definitely much better than
StretchDraw.

However, it won't fix the underlying problem. Bitmaps (and JPG and GIF,
etc) are raster images - essentially just collections of dots. They
simply don't resize well. Especially to larger sizes, where individual
pixels start to get blocky.

In a large project I did, I ended up scrapping the use of bitmaps and
going with metafiles - which are vector based - instead. Obviously not
a good approach for photographic images, but excellent for things like
forms and clip art.

David M

unread,
Jul 17, 2008, 2:52:36 AM7/17/08
to
There are resampling algorithms that can give decent results, depending on
what you're trying to do.

Try some of the links here:
http://homepages.borland.com/efg2lab/Library/Delphi/Graphics/ImageProcessing.htm#Resampling

Cheers,

David

"Atmapuri" <janez.m...@usa.net> wrote in message
news:487e...@newsgroups.borland.com...

Ivan

unread,
Jul 17, 2008, 4:30:15 PM7/17/08
to
+1
I've used it for resizing and was very happy with it

JED

unread,
Jul 18, 2008, 5:34:56 PM7/18/08
to
Atmapuri wrote:

> Hi!
>
> I tried using Bitmpa.Canvas.StretchDraw to resize an image,
> but the quality is clearly missing. What would be the next thing
> to try?
>

If you don't mind spending a few dollars, I can highly recommend
ImageEn from HiComponents. Excellent component set.

www.hicomponents.com

--
TJSDialog - TaskDialog for other operating systems:
http://www.jed-software.com/jsd.htm
Visual Forms IDE Add In: http://www.jed-software.com/vf.htm

Blog: http://jedqc.blogspot.com

0 new messages