This discussion is archived
2 Replies Latest reply: Jan 5, 2013 11:32 AM by KonradZuse RSS

Draw to Image like BufferedImage.createGraphics(), but NOT in FX2's thread

898076 Newbie
Currently Being Moderated
Hi. I want to draw some shapes in fx2's Image. Canvas.shapshot() can not be run outside fx's own thread, what gives various trouble, like either out of order drawing or delays on semaphores, On top of that, the code is complex and slow -- all drawing is performed probably on just a single thread, and the app starts to behave suspiciously, like a snapshot to an image within Platform.runLater results in that image drawn elsewhere by fx2 as if it were transparent, even that the image should never be transparent.

Is fx2 currently not able to do any concurrent plain drawing?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points