Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Image

[13:7] extends: FxObj

Wraps JavaFX Image, a container that loads and decodes a raster image from a URL or a local file path for use in ImageView and other visual nodes. When the provided path starts with http:// or https://, the image is fetched directly from the network. Otherwise the file is read from the local file system and streamed into the JavaFX image loader. The resulting object can be assigned to any JavaFX node that accepts an Image.

Methods

  • Image (string FileName)

    Initializes a new Image instance with the specified file path or URL. If a URL is provided, the image is loaded directly from the web; otherwise, a local file is loaded.

    • @p FileName The path or URL of the image to be loaded.
    • @r this object