public class ColorAdjust
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

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

extends Effect

Since:  JavaFX 2.0