Some questions
Edu García
arcnorj at gmail.com
Sat Aug 9 22:19:35 UTC 2014
Hi, I have a few questions about JavaFX usage, I hope this is the right
place to ask them:
1. I'm creating a Pane with a lot of shapes and resizing it to 128x128. I'm
saving it as an image with snapshot() and SwingFXUtils.fromFXImage() (is
there any other way?). Why is my saved image 129x129, instead of 128x128?
2. With the same Pane and image, when working on a "Retina" system, the
output is clearly pixelated, like the real resolution of the image should
be 64x64. Is this a bug?
3. Non related to the previous, I want to have pixelated rendering (on the
screen, not to a file) when I modify the scale of my pane or shapes. Is
there a way of forcing JavaFX to do something like that? Or do I have to
render to an image at 1:1 resolution, scale that and replace my pane with
it? I'm assuming that will be a bit slow.
Thank you in advance!
More information about the openjfx-dev
mailing list