0

I have a BorderPane with many components. Is there a way to convert the BorderPane into Image and store in into ImageView?

Perneel
  • 3,317
  • 7
  • 45
  • 66
user1285928
  • 1,328
  • 29
  • 98
  • 147

1 Answers1

0

Yes, there is.

JavaFX Node has a snapshot API. See a simple example here, and a more complex example here.

Related StackOverflow questions:

  • Take a snapshot part of canvas in javaFX
  • JavaFX: multiple snapshots in single image
  • Terrible Screenshot JavaFx
  • Taking a screenshot of a scene or a portion of a scene in JavaFx 2.2
  • Community
    • 1
    • 1
    Georgian
    • 8,795
    • 8
    • 46
    • 87