java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.SepiaTone
A filter that produces a sepia tone effect, similar to antique photographs.
 
Example:
 SepiaTone sepiaTone = new SepiaTone();
 sepiaTone.setLevel(0.7);
 Image image = new Image("boat.jpg");
 ImageView imageView = new ImageView(image);
 imageView.setFitWidth(200);
 imageView.setPreserveRatio(true);
 imageView.setEffect(sepiaTone);
 
 The code above applied on this image:
 
 
produces the following:
 
 
- Since:
 - JavaFX 2.0
 
- 
Property Summary
PropertiesTypePropertyDescriptionfinal ObjectProperty<Effect>The input for thisEffect.final DoublePropertyThe level value, which controls the intensity of the sepia effect. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinal EffectgetInput()Gets the value of theinputproperty.final doublegetLevel()Gets the value of thelevelproperty.final ObjectProperty<Effect>The input for thisEffect.final DoublePropertyThe level value, which controls the intensity of the sepia effect.final voidSets the value of theinputproperty.final voidsetLevel(double value) Sets the value of thelevelproperty. 
- 
Property Details
- 
input
The input for thisEffect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.- Default value:
 - null
 - See Also:
 
 - 
level
The level value, which controls the intensity of the sepia effect.Min: 0.0f Max: 1.0f Default: 1.0f Identity: 0.0f- Default value:
 - 1.0f
 - See Also:
 
 
 - 
 - 
Constructor Details
- 
SepiaTone
public SepiaTone()Creates a new instance of SepiaTone with default parameters. - 
SepiaTone
public SepiaTone(double level) Creates a new instance of SepiaTone with the specified level.- Parameters:
 level- the level value, which controls the intensity of the effect- Since:
 - JavaFX 2.1
 
 
 - 
 - 
Method Details
- 
setInput
Sets the value of theinputproperty.- Property description:
 - The input for this 
Effect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input. - Default value:
 - null
 - Parameters:
 value- the value for theinputproperty- See Also:
 
 - 
getInput
Gets the value of theinputproperty.- Property description:
 - The input for this 
Effect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input. - Default value:
 - null
 - Returns:
 - the value of the 
inputproperty - See Also:
 
 - 
inputProperty
The input for thisEffect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.- Default value:
 - null
 - Returns:
 - the 
inputproperty - See Also:
 
 - 
setLevel
public final void setLevel(double value) Sets the value of thelevelproperty.- Property description:
 - The level value, which controls the intensity of the sepia effect.
 
Min: 0.0f Max: 1.0f Default: 1.0f Identity: 0.0f - Default value:
 - 1.0f
 - Parameters:
 value- the value for thelevelproperty- See Also:
 
 - 
getLevel
public final double getLevel()Gets the value of thelevelproperty.- Property description:
 - The level value, which controls the intensity of the sepia effect.
 
Min: 0.0f Max: 1.0f Default: 1.0f Identity: 0.0f - Default value:
 - 1.0f
 - Returns:
 - the value of the 
levelproperty - See Also:
 
 - 
levelProperty
The level value, which controls the intensity of the sepia effect.Min: 0.0f Max: 1.0f Default: 1.0f Identity: 0.0f- Default value:
 - 1.0f
 - Returns:
 - the 
levelproperty - See Also:
 
 
 -