publicclassSepiaToneEffectExampleextendsApplication { @Override publicvoidstart(Stage stage) { //Creating an image Imageimage=newImage("http://www.tutorialspoint.com/images/tp-logo.gif"); //Setting the image view ImageViewimageView=newImageView(image); //Setting the position of the image imageView.setX(150); imageView.setY(0); //setting the fit height and width of the image view imageView.setFitHeight(300); imageView.setFitWidth(400); //Setting the preserve ratio of the image view imageView.setPreserveRatio(true); //Instanting the SepiaTone class SepiaTonesepiaTone=newSepiaTone(); //Setting the level of the effect sepiaTone.setLevel(0.8); //Applying SepiaTone effect to the image imageView.setEffect(sepiaTone); //Creating a Group object Grouproot=newGroup(imageView); //Creating a scene object Scenescene=newScene(root, 600, 300); //Setting title to the Stage stage.setTitle("Sepia tone effect example"); //Adding scene to the stage stage.setScene(scene); //Displaying the contents of the stage stage.show(); } publicstaticvoidmain(String args[]){ launch(args); } }