[Sugar-devel] [Karma] experimenting w/ canvas, drawImage draws a distorted pic

Lucian Branescu lucian.branescu at gmail.com
Mon Aug 31 05:42:53 EDT 2009


I think canvas pixels are different from css pixels. In canvas you get
the pixels of the internal rendering engine and with css you get the
device-modified pixels.

2009/8/31 Bryan Berry <bryan at olenepal.org>:
> apparently, everything gets screwed up when i put the height and width
> in css but works fine when i put the same values in the <canvas> tag
>
> On Mon, 2009-08-31 at 13:47 +0545, Bryan Berry wrote:
>> subzero,
>>
>> http://karma.sugarlabs.org/mainline/experiments/mytest1.html
>>
>> http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/experiments/mytest1.html
>>
>> for whatever reason context.drawImage draws the ball image at 2x the
>> specified height. Any idea why?
>>
>> i have added the experiments/ folder at the root level. I know that
>> clutters the root directory. perhaps there is a better place to put it
>>
>>
> --
> Bryan W. Berry
> Technology Director
> OLE Nepal, http://www.olenepal.org
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list