Class ImageUtils
- java.lang.Object
-
- com.github.ushiosan23.javafx.utils.ImageUtils
-
public final class ImageUtils extends java.lang.ObjectImage 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.WritableImagegetSnapShot(javafx.scene.Node target)Create node snapshot.static javafx.scene.image.WritableImagegetSnapShot(javafx.scene.Scene target)Create snapshot of scene.
-
-
-
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:
WritableImageinstance 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:
WritableImageinstance result.
-
-