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
No related merge requests found
......@@ -249,14 +249,6 @@ public class PaintGUI extends JPanel {
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();
try {
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