Maximum size of a canvas?

Werner Lehmann lehmann at media-interactive.de
Fri May 15 15:02:57 UTC 2015


Hi Jeff,

interesting idea although I am not sure in which way this improves 
things. I am already scaling the canvas node if it is bigger than 
necessary (due to previous zoom, works like supersampling then) or 
smaller than necessary (if the maximum size is reached but I need to 
present the content bigger than that).

Looks as if the scaling of the canvas and the scaling of the 
graphicscontext might both be applied at the same time - unless one is 
simply a shortcut to the other. I have to experiment on this one.

Rgds
Werner

On 15.05.2015 16:15, Jeff Hain wrote:
> Instead of creating an eventually (and quadratically) huge canvas,
> you could try using Canvas.getGraphicsContext().scale(2
> double)/translate(2 double),
> and "bind" the scroll bars to the {canvas dimensions, applied transform}
> data.


More information about the openjfx-dev mailing list