java - Getting current stage GraphicsDevice in JavaFX -


is possible graphicsdevice of current javafx stage?

i know able current screen via screen.getscreensforrectangle method, need graphicsdevice instead.

use screen method, e.g. 1 of getscreensforrectangle(), find screen of interest. in graphicsenvironment obtained getlocalgraphicsenvironment(), iterate though each graphicsconfiguration of each graphicsdevice find devices bounds intersect bounds obtained screen.getbounds(). there may more one. typical iteration scheme shown here.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -