Skip to content
Snippets Groups Projects
Commit e807c965 authored by Hai HoDac's avatar Hai HoDac
Browse files

"new file" button - works

parent 18d3ce6b
No related branches found
No related tags found
1 merge request!36Hai
...@@ -249,14 +249,6 @@ public class PaintGUI extends JPanel { ...@@ -249,14 +249,6 @@ public class PaintGUI extends JPanel {
err.printStackTrace(); err.printStackTrace();
} }
// SerializableImage serializableImage = new SerializableImage(600, 600, BufferedImage.TYPE_INT_ARGB);
// try {
// serializableImage.setImage(ImageIO.read(file));
// } catch (IOException ex) {
// ex.printStackTrace();
// }
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();
try { try {
javax.imageio.ImageIO.write(ImageIO.read(file), "png", baos); javax.imageio.ImageIO.write(ImageIO.read(file), "png", baos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment