>><span class="Apple-style-span" style="font-family: Arial; border-collapse: collapse; color: rgb(0, 0, 255); ">Thanks, although I was asking John for an example of his concern. ;-)</span><div><font class="Apple-style-span" color="#0000FF"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" color="#0000FF"><span class="Apple-style-span" style="border-collapse: collapse;">LoL.. see why programmers dont rule the world.. haha.. </span></font></div><div><font class="Apple-style-span" color="#0000FF"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" color="#0000FF"><span class="Apple-style-span" style="border-collapse: collapse;">Its our specification techniques.. I saw.. "Can you post an example?" and think source.. not.. "Hey John.. whats your concern with the image quality." LoL.. </span></font></div>
<div><font class="Apple-style-span" color="#0000FF"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" color="#0000FF"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font><br><div class="gmail_quote">On Tue, Jan 19, 2010 at 11:08 AM, Conor Boyd <span dir="ltr"><<a href="mailto:Conor.Boyd@trimble.co.nz">Conor.Boyd@trimble.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Thanks for sharing.</font></span></div><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:delphi-bounces@delphi.org.nz" target="_blank">delphi-bounces@delphi.org.nz</a>
[mailto:<a href="mailto:delphi-bounces@delphi.org.nz" target="_blank">delphi-bounces@delphi.org.nz</a>] <b>On Behalf Of </b>Kyley
Harris<br><b>Sent:</b> Tuesday, 19 January 2010 10:58 a.m.<div class="im"><br><b>To:</b> NZ
Borland Developers Group - Delphi List<br></div><b>Subject:</b> Re: [DUG] Resizing
images<br></font><br></div><div><div></div><div class="h5">
<div></div>
<div>begin</div>
<div> FSourceBMP.Assign(Value);</div>
<div> if Zoom <> 1 then</div>
<div> begin</div>
<div> FBMP.Assign(FSourceBMP);</div>
<div> FBMP.Width := Trunc(FSourceBMP.Width * Zoom);</div>
<div> FBMP.Height := Trunc(FSourceBMP.Height * Zoom);</div>
<div> Stretch(FBMP.Width, FBMP.Height
,sfBox,1,FSourceBMP,FBMP);</div>
<div> end else</div>
<div> FBMP.Assign(FSourceBMP);</div>
<div> FImageAssigned := True;</div>
<div>end;</div>
<div><br></div>
<div>here is a snippet using a Zoom variable to stretch with Aspect ratio. Its
basically the same as TCanvas.stretch, but faster and far higher quality. There
are a few options (sfBox, Triangle) etc for how it samples the pixels..
different ones get better results for Text, photo.. etc..</div><br>
<div class="gmail_quote">On Tue, Jan 19, 2010 at 10:53 AM, Kyley Harris <span dir="ltr"><<a href="mailto:Kyley@harrissoftware.com" target="_blank">Kyley@harrissoftware.com</a>></span>
wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">Sure.. gimme 5 minutes
<div>i can email you the source too.. its open<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Tue, Jan 19, 2010 at 10:31 AM, Conor Boyd <span dir="ltr"><<a href="mailto:Conor.Boyd@trimble.co.nz" target="_blank">Conor.Boyd@trimble.co.nz</a>></span> wrote:<br></div></div>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>
<div></div>
<div>
<div lang="EN-NZ" vlink="purple" bgcolor="#ffffff" link="blue">
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Can you
post your example? Or another example?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">C.</font></span></div><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:delphi-bounces@delphi.org.nz" target="_blank">delphi-bounces@delphi.org.nz</a> [mailto:<a href="mailto:delphi-bounces@delphi.org.nz" target="_blank">delphi-bounces@delphi.org.nz</a>] <b>On Behalf Of </b>John
Bird<br><b>Sent:</b> Tuesday, 19 January 2010 9:46 a.m.<br><b>To:</b> NZ
Borland Developers Group - Delphi List<br><b>Subject:</b> [DUG] Resizing
images<br></font><br></div>
<div>
<div></div>
<div>
<div></div>
<div><font color="#000000" size="2" face="Arial">Resizing images for Images,
bitButtons and icons - I guess we all do this.</font></div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div><font color="#000000" size="2" face="Arial">I have used IrfanView and
Photofiltre for resizing images, and noticed they tend to alter the
edge pixels around an image - I guess it averages the pixel colours on
a sharp edge if resizing smaller. This is a problem with images with a
background surround - these pixels are not the transparent background colour
any more and create a ragged edge noticeable when the image is on a darker
background.</font></div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div><font color="#000000" size="2" face="Arial">How do others resize images
properly?</font></div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div><font color="#000000" size="2" face="Arial">(Example is the Analogue clock
with the image background some are using- over a dark background you may see
there are a fewer light pixels around the edge that shouldn't be
there)</font></div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div><font color="#000000" size="2" face="Arial"></font> </div>
<div>John</div></div></div></div><br></div></div>
<div>_______________________________________________<br>NZ Borland
Developers Group - Delphi mailing list<br>Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe:
send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject:
unsubscribe<br></div></blockquote></div>
<div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris
Software<br>+64-21-671-821<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris
Software<br>+64-21-671-821<br></div></div></div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris Software<br>
+64-21-671-821<br>
</div>