SwingFXUtils

object SwingFXUtils
Since

8.0

class Object
trait Matchable
class Any

Value members

Concrete methods

def fromFXImage(img: Image, bimg: BufferedImage): BufferedImage

Snapshots the specified ScalaFX Image object and stores a copy of its pixels into a BufferedImage object, creating a new object if needed.

Snapshots the specified ScalaFX Image object and stores a copy of its pixels into a BufferedImage object, creating a new object if needed.

Value Params
bimg

an optional BufferedImage object that may be used to store the returned pixel data

img

the JavaFX Image to be converted

Returns

a BufferedImage containing a snapshot of the JavaFX Image, or null if the Image is not readable.

def toFXImage(bimg: BufferedImage, wimg: WritableImage): WritableImage

Snapshots the specified BufferedImage and stores a copy of its pixels into a ScalaFX Image object, creating a new object if needed.

Snapshots the specified BufferedImage and stores a copy of its pixels into a ScalaFX Image object, creating a new object if needed.

Value Params
bimg

the BufferedImage object to be converted

wimg

an optional WritableImage object that can be used to store the returned pixel data

Returns

an Image object representing a snapshot of the current pixels in the BufferedImage.