Class ImageUtils


  • public final class ImageUtils
    extends java.lang.Object
    Image utilities. This class is used to modify create or edit images more easy.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javafx.scene.image.WritableImage getSnapShot​(javafx.scene.Node target)
      Create node snapshot.
      static javafx.scene.image.WritableImage getSnapShot​(javafx.scene.Scene target)
      Create snapshot of scene.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSnapShot

        public static javafx.scene.image.WritableImage getSnapShot​(javafx.scene.Node target)
        Create node snapshot.
        Parameters:
        target - Target node to take snapshot.
        Returns:
        WritableImage instance result.
      • getSnapShot

        public static javafx.scene.image.WritableImage getSnapShot​(javafx.scene.Scene target)
        Create snapshot of scene. The trick is take snapshot to root scene node.
        Parameters:
        target - Target scene to take snapshot.
        Returns:
        WritableImage instance result.