- public static void main(String[] args) {
-
- try {
-
- String image = "colorful photo";
- String sourceDirectory = "/eu/svjatoslav/imagesqueeze/sampleApplication/data/";
-
- // create visible frame
- // load image into frame
- InputStream inputStream = Main.class.getResourceAsStream(sourceDirectory + image + ".png");
-
- ImageFrame frame = new ImageFrame("Original image");
- frame.getImagePanel().loadImage(inputStream, false);
- frame.setVisible(true);
-