Re: [whatwg] Canvas element image scaling

2010-12-27 Thread Ian Hickson
On Sat, 18 Sep 2010, Rob Evans wrote: > > Has the canvas spec changed the way the drawImage function scales before > drawing to canvas? On Sat, 18 Sep 2010, Tab Atkins Jr. wrote: > > It doesn't specify how the function scales at all: "Note: This > specification does not define the algorithm to

Re: [whatwg] Canvas element image scaling

2010-09-24 Thread Boris Zbarsky
On 9/24/10 10:04 PM, Ruben Rodriguez II wrote: Forgive me as I have not kept up with all the discussions on this list, but have there been any suggestions with regards to NOT using a filter for rescaling? The mails you quoted mention how to do this in Gecko. -Boris

Re: [whatwg] Canvas element image scaling

2010-09-24 Thread Ruben Rodriguez II
On 09/24/2010 08:40 PM, Gregg Tavares (wrk) wrote: As others have pointed out, canvas scaling algorithm is not specified and is different in each browser. http://greggman.com/downloads/examples/canvas-test/test-01/canvas-test-01-results.html http://greggman.com/downloads/examples/canvas-test/t

Re: [whatwg] Canvas element image scaling

2010-09-24 Thread Gregg Tavares (wrk)
As others have pointed out, canvas scaling algorithm is not specified and is different in each browser. http://greggman.com/downloads/examples/canvas-test/test-01/canvas-test-01-results.html http://greggman.com/downloads/examples/canvas-test/test-01/canvas-test-01.html On Sat, Sep 18, 2010 at 7

Re: [whatwg] Canvas element image scaling

2010-09-18 Thread Rob Evans
Thanks I'll give that a go in the morning! All the best, Rob On 19 Sep 2010 03:42, "Boris Zbarsky" wrote: On 9/18/10 9:57 PM, Rob Evans wrote: > > Thanks for the reply. I’m already using high resolution ima... Gecko will scale canvas images in one of two ways: either using a nearest-neighbor a

Re: [whatwg] Canvas element image scaling

2010-09-18 Thread Boris Zbarsky
On 9/18/10 9:57 PM, Rob Evans wrote: Thanks for the reply. I’m already using high resolution images and I cannot cut sections of the image off because I am not using canvas to create thumbnails, I’m using it to create a game engine. I guess this is a question I will have to take up with the Firef

Re: [whatwg] Canvas element image scaling

2010-09-18 Thread Rob Evans
C [mailto:tccy...@hotmail.com] Sent: 19 September 2010 02:51 To: r...@mtn-i.com Cc: whatwg@lists.whatwg.org Subject: RE: [whatwg] Canvas element image scaling It depends on the graphic lib of the browser. I think you can use a higher resolution picture which will not be shown, then you draw par

Re: [whatwg] Canvas element image scaling

2010-09-18 Thread Yp C
] Canvas element image scaling Has the canvas spec changed the way the drawImage function scales before drawing to canvas? 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. Just

Re: [whatwg] Canvas element image scaling

2010-09-18 Thread Tab Atkins Jr.
On Sat, Sep 18, 2010 at 2:25 PM, Rob Evans wrote: > Has the canvas spec changed the way the drawImage function scales before > drawing to canvas? It doesn't specify how the function scales at all: "Note: This specification does not define the algorithm to use when scaling the image, if necessary.

[whatwg] Canvas element image scaling

2010-09-18 Thread Rob Evans
Has the canvas spec changed the way the drawImage function scales before drawing to canvas? 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. Just interested to know if I c

Re: [whatwg] canvas element

2006-05-16 Thread Ian Hickson
This reply covers most of the e-mails regarding the semantics of the canvas element that were raised around this time last year. On Wed, 20 Apr 2005, Olav Junker Kj�r wrote: > > I don't completely understand the rationale for the canvas-element in WA1. > > It seems to overlap a lot with the use