JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

The Image class represents graphical images.

Profile: common

Attribute Summary

nametypedescription
Public
backgroundLoadingBoolean

Determines if the placeholder image is used while the URL is loaded in the background.

More: [+]

Determines if the placeholder image is used while the URL is loaded in the background. The default value is null

Profile: common

heightNumber

Determines the height of the image.

More: [+]

Determines the height of the image.

If image's size is specified then the image is scaled so that the maximum dimension is equal to size and the original aspect ratio is preserved.

If image's width and height are specified then the image is scaled to match.

If only height is specified the image is scaled to match and the original aspect ratio is preserved.

Profile: common

placeholderImage

Determines the placeholder image which is used when #backgroundLoading is set to true and the URL is loaded in the background.

More: [+]

Determines the placeholder image which is used when #backgroundLoading is set to true and the URL is loaded in the background. The default value is null.

Profile: common

progressNumber

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

More: [+]

The approximate percentage of image's loading that has been completed. The default value is 0.

Profile: common

sizeNumber

Determines the size of the image.

More: [+]

Determines the size of the image.

If image's size is specified then the image is scaled so that the maximum dimension is equal to size and the original aspect ratio is preserved.

Profile: common

urlString

The URL to use in fetching the pixel data.

More: [+]

The URL to use in fetching the pixel data.

Profile: common

widthNumber

Determines the width of the image.

More: [+]

Determines the width of the image.

If image's size is specified then the image is scaled so that the maximum dimension is equal to size and the original aspect ratio is preserved.

If image's width and height are specified then the image is scaled to match.

If only width is specified the image is scaled to match and the original aspect ratio is preserved.

Profile: common

Protected

Inherited Attributes

Function Summary

public cancel() : Void

More: [+]

public static fromBufferedImage(image: java.awt.image.BufferedImage) : Image

More: [+]

Parameters
image
Returns
Image
public bound getBufferedImage() : java.awt.image.BufferedImage

More: [+]

Returns
BufferedImage

Inherited Functions