import
javafx.application.Application;
import
javafx.scene.Scene;
import
javafx.scene.control.*;
import
javafx.scene.layout.*;
import
javafx.stage.Stage;
import
javafx.scene.image.*;
import
javafx.scene.effect.*;
import
java.io.*;
import
javafx.event.ActionEvent;
import
javafx.event.EventHandler;
import
javafx.scene.Group;
public
class
box_blur_2
extends
Application {
public
void
start(Stage stage)
throws
Exception
{
stage.setTitle(
"BoxBlur Example"
);
FileInputStream input =
new
FileInputStream(
"D:\\GFG.png"
);
Image image =
new
Image(input);
ImageView imageview =
new
ImageView(image);
BoxBlur box_blur =
new
BoxBlur();
box_blur.setWidth(
10
.0f);
box_blur.setHeight(
10
.0f);
box_blur.setIterations(
3
);
imageview.setEffect(box_blur);
VBox vbox =
new
VBox(imageview);
Scene scene =
new
Scene(vbox,
200
,
200
);
stage.setScene(scene);
stage.show();
}
public
static
void
main(String args[])
{
launch(args);
}
}