<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=376142604-13102009><FONT face=Arial
color=#0000ff size=2>Depends what Robert wants, but StretchDraw won't give you
anything like the resampling quality of a decent resampling algorithm such as a
Lanczos Kernel. If you want to see the difference without writing code,
check out the freeware Irfanview image utility (<A
href="http://www.irfanview.com">www.irfanview.com</A>) and try resizing an image
using the various resampling algorithms available in that
utility.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=376142604-13102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=376142604-13102009><FONT face=Arial
color=#0000ff size=2>One thing that I think a lot of people overlook is
that a file format is just that: a file format. Once one has loaded an
image from a file of a particular format, then the image in memory is
simply a bitmapped image (or a raster image or whatever). At that point,
it's completely divorced from the file format it happened to be last persisted
in.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=376142604-13102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=376142604-13102009><FONT face=Arial
color=#0000ff size=2>C.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> delphi-bounces@delphi.org.nz
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>John
Bird<BR><B>Sent:</B> Tuesday, 13 October 2009 5:13 p.m.<BR><B>To:</B> NZ Borland
Developers Group - Delphi List<BR><B>Subject:</B> Re: [DUG] Image
manipulation<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial color=#000000 size=2>I have a neat program that can picks
a JPG file, converts JPG to BMP and back and resize it at will too.</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2>The trick is that you can resize
as a BMP, but save back as a JPG</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>Can email the rest of the project,
but here is the main unit to show its not hard to do...</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>This program zooms a bevel in
and out to show the size of the image will be when resized, but does not
actually resize until you click resize now, as the image would lose quality by
being continuously resized.</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>Its all done by about 4 lines in the
ResizeNow procedure</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><BR>
<P><FONT face=Arial size=2>[snip]</FONT> </P></FONT></DIV></BODY></HTML>