Maximum size of a canvas?

Jeff Hain jeffhain at rocketmail.com
Fri May 15 14:15:26 UTC 2015


Hi.

>The report can be zoomed in which basically means
>that I recreate the canvas with a bigger size (the canvas is inside a
>scrollpane).


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.


-Jeff



More information about the openjfx-dev mailing list