SwingFXUtils

scalafx.embed.swing.SwingFXUtils
object SwingFXUtils

Attributes

Since

8.0

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

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 parameters

bimg

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

img

the JavaFX Image to be converted

Attributes

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 parameters

bimg

the BufferedImage object to be converted

wimg

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

Attributes

Returns

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