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

Bryan Berry bryan at olenepal.org
Mon Aug 31 06:15:03 EDT 2009


interesting, i had no idea about that
On Mon, 2009-08-31 at 10:42 +0100, Lucian Branescu wrote:
> 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
> >
-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org



More information about the Sugar-devel mailing list