Javatpoint Logo
Javatpoint Logo

JavaFX GaussianBlur Effect

GaussianBlur Effect is very much similar to BoxBlur effect. The only difference between the both is that the GaussianBlur effect uses a Gaussian convolution kernel to blur the nodes. However, JavaFX provides the class javafx.scene.effect.GaussianBlur to implement GaussianBlur on the nodes. This class needs to be instantiated in order to apply an appropriate effect on the node.

Properties

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

Property Description Setter Methods
input This property is of effect type. It represents the input for the effect. setInput(Effect value)
radius This property is of double type. It represents the radius of the blur kernel. setRadius(Double value)

Constructors

The class contains two constructors.

  1. public GaussianBlur() : creates the new instance with the default value of parameters.
  2. public GaussianBlur(double radius) : creates a new instance with the specified value of parameters.

Example:


JavaFX GaussianBlur Effect




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA