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

Profile: desktop, common

Overview

A high-level effect that makes brighter portions of the input image appear to glow, based on a configurable threshold.

the code:

import javafx.scene.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;

Group {
    effect: Bloom {}
    cache: true
    content: [
        Rectangle {
            x: 10 y: 10
            width: 160
            height: 80
            fill: Color.DARKBLUE
        },
        Text {
            x: 25 y: 65
            content: "Bloom!"
            fill: Color.YELLOW
            font: Font.font(null, FontWeight.BOLD, 36);
        },
    ]
}

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicinputEffectnull

The input for this Effect.

The input for this Effect. If set to null, or left unspecified, a graphical image of the Node to which the Effect is attached will be used as the input.

null  
publicthresholdNumber0.3

The threshold value controls the minimum luminosity value of the pixels that will be made to glow.

The threshold value controls the minimum luminosity value of the pixels that will be made to glow.

       Min: 0.0
       Max: 1.0
   Default: 0.3
  Identity: n/a
 

0.3  

Inherited Variables

Function Summary

public impl_getImpl() : com.sun.scenario.effect.Effect
Returns
Effect
 

Inherited Functions

javafx.scene.effect.Effect

public getAccelType(config: java.awt.GraphicsConfiguration) : java.lang.String

Returns a String representing the type of hardware acceleration, if any, that is used when applying this Effect on the given GraphicsConfiguration.

Returns a String representing the type of hardware acceleration, if any, that is used when applying this Effect on the given GraphicsConfiguration. This method is intended for informational or debugging purposes only.

Parameters
config
Returns
String
 
public abstract impl_getImpl() : com.sun.scenario.effect.Effect
Returns
Effect