Maximum dimensions of canvas in JavaFX

2019-04-07 19:39发布

问题:

Does anyone know the maximum dimensions of a canvas in JavaFX? From some tests it seams to be 8192 (the same of IE) and, by my side, this is strange. Maybe, is it modifiable?

回答1:

Likely it depends upon the maximum texture size for your video card as I believe, using the most common hardware accelerated rendering pipeline, the canvas will ultimately be represented as a texture. (I don't know this exactly, but I think it is a pretty good guess).

You can cross-post to openjfx-dev to get a developer to confirm.