JavaFX ImageInput

This effect is mainly used to pass the unmodified image as an input for the other effects. The class javafx.scene.effect.ImageInput represents ImageInput effect. This class contains various properties which can be set to a certain value in order to render an appropriate image.

Properties

The properties of the class along with their setter methods are described in the following table.

PropertyDescriptionSetter Methods
sourceURL of the source image.setSource(Image image)
XThe X coordinate of the imagesetX(Double value)
YThe Y coordinate of the imagesetY(Double value)

Constructors

The class contains three constructors described below.

  1. ImageInput() : Instantiate ImageInput class with default parameters.
  2. ImageInput(Image source) : Instantiate ImageInput with the specified image source.
  3. ImageInput(Image source, Double X, Double Y) : Instantiate ImageInput with the default image source and specified coordinates

Example:


JavaFX ImageInput Effect



Latest Courses