Search code examples
canvasjavafx-2javafx

Maximum dimensions of canvas in JavaFX


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?


Solution

  • 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.