<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
It depends on the graphic lib of the browser.<div> I think you can use a higher resolution picture which will not be shown, then you draw part of the higher resolution pic as the thumbnail.<br><br><hr id="stopSpelling">From: rob@mtn-i.com<br>To: whatwg@lists.whatwg.org<br>Date: Sat, 18 Sep 2010 22:25:12 +0100<br>Subject: [whatwg] Canvas element image scaling<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxEmailStyle17
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style><div class="ecxWordSection1"><p class="ecxMsoNormal">Has the canvas spec changed the way the drawImage function scales before drawing to canvas?</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">I¡¯ve been testing using Chrome 6 and now with Chromium 7 and Firefox 4 Beta 6 the image scaling looks significantly different to the way Chrome 6 scales with drawImage.</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Just interested to know if I can get the later browser test versions to render with drawImage the same way as the current release of Chrome, if the new scaling I¡¯m seeing is expected behaviour or just because they are test versions. If it is expected behaviour, it seems like a step backwards for image quality!</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">You can see the images for yourself here: <a href="http://irrelon.com/test/" target="_blank">http://irrelon.com/test/</a></p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Thanks!</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Rob Evans</p></div></div> </body>
</html>