[Pixelle-commit] SF.net SVN: pixelle: [94] trunk/pixelle/src/com/mebigfatguy/pixelle
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-06-28 01:10:31
|
Revision: 94
http://pixelle.svn.sourceforge.net/pixelle/?rev=94&view=rev
Author: dbrosius
Date: 2008-06-27 18:10:40 -0700 (Fri, 27 Jun 2008)
Log Message:
-----------
when creating a new window, also create a blank image
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleImage.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-06-28 01:02:09 UTC (rev 93)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-06-28 01:10:40 UTC (rev 94)
@@ -87,6 +87,7 @@
PixelleImage image;
public PixelleFrame() {
+ image = new PixelleImage();
initComponents();
initListeners();
setTitle(rb.getString("pixelle.title"));
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleImage.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleImage.java 2008-06-28 01:02:09 UTC (rev 93)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleImage.java 2008-06-28 01:10:40 UTC (rev 94)
@@ -37,6 +37,10 @@
private BufferedImage selection;
private Composite composite;
+ public PixelleImage() {
+ this(new BufferedImage(400, 400, BufferedImage.TYPE_3BYTE_BGR));
+ }
+
public PixelleImage(BufferedImage img) {
image = img;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|