WritableImage

class WritableImage(val delegate: WritableImage) extends Image with SFXDelegate[WritableImage]
class Image
trait SFXDelegate[WritableImage]
class Object
trait Matchable
class Any

Value members

Constructors

def this(width: Int, height: Int)

Construct an empty image of the specified dimensions.

Construct an empty image of the specified dimensions.

def this(reader: PixelReader, width: Int, height: Int)

Construct an image of the specified dimensions, initialized from the indicated scalafx.scene.image.PixelReader.

Construct an image of the specified dimensions, initialized from the indicated scalafx.scene.image.PixelReader.

def this(reader: PixelReader, x: Int, y: Int, width: Int, height: Int)

Construct an image of the specified dimensions, initialized from the indicated region of the scalafx.scene.image.PixelReader.

Construct an image of the specified dimensions, initialized from the indicated region of the scalafx.scene.image.PixelReader.

Concrete methods

This method returns a PixelWriter that provides access to write the pixels of the image.

This method returns a PixelWriter that provides access to write the pixels of the image.

Deprecated methods

@deprecated("Method name is incorrect use `pixelWriter`.", "8.0.60-R10")
Deprecated

Inherited methods

def backgroundLoading: Boolean

Indicates whether the image is being loaded in the background.

Indicates whether the image is being loaded in the background.

Inherited from
Image
def cancel(): Unit

Cancels the background loading of this image.

Cancels the background loading of this image.

Inherited from
Image
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate

Indicates whether an error was detected while loading an image.

Indicates whether an error was detected while loading an image.

Inherited from
Image

The exception which caused image loading to fail.

The exception which caused image loading to fail.

Inherited from
Image
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate

The image height or 0 if the image loading fails.

The image height or 0 if the image loading fails.

Inherited from
Image
def pixelReader: Option[PixelReader]

This method returns a Option of scalafx.scene.image.PixelReader that provides access to read the pixels of the image, if the image is readable.

This method returns a Option of scalafx.scene.image.PixelReader that provides access to read the pixels of the image, if the image is readable.

Inherited from
Image
def preserveRatio: Boolean

Indicates whether to preserve the aspect ratio of the original image when scaling to fit the image within the bounding box provided by width and height.

Indicates whether to preserve the aspect ratio of the original image when scaling to fit the image within the bounding box provided by width and height.

Inherited from
Image

The approximate percentage of image's loading that has been completed.

The approximate percentage of image's loading that has been completed.

Inherited from
Image
def smooth: Boolean

Indicates whether to use a better quality filtering algorithm or a faster one when scaling this image to fit within the bounding box provided by width and height.

Indicates whether to use a better quality filtering algorithm or a faster one when scaling this image to fit within the bounding box provided by width and height.

Inherited from
Image
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate

The image width or 0 if the image loading fails.

The image width or 0 if the image loading fails.

Inherited from
Image

Concrete fields

override val delegate: WritableImage