Class ColorAdjust

java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.ColorAdjust

public class ColorAdjust extends Effect
An effect that allows for per-pixel adjustments of hue, saturation, brightness, and contrast.

Example:


 ColorAdjust colorAdjust = new ColorAdjust();
 colorAdjust.setContrast(0.1);
 colorAdjust.setHue(-0.05);
 colorAdjust.setBrightness(0.1);
 colorAdjust.setSaturation(0.2);

 Image image = new Image("boat.jpg");
 ImageView imageView = new ImageView(image);
 imageView.setFitWidth(200);
 imageView.setPreserveRatio(true);
 imageView.setEffect(colorAdjust);
 

The code above applied on this image:

A photo

produces the following:

The visual effect of ColorAdjust on
 photo

Since:
JavaFX 2.0