2003/09/07 03:04:31
[org.ibex.core.git] / src / org / xwt / PNG.java
index 801a3f2..4f5640a 100644 (file)
@@ -21,7 +21,7 @@ import java.util.Enumeration;
 import java.util.zip.*;
 
 /** Converts an InputStream carrying a PNG image into an ARGB int[] */
-public class PNG implements ImageDecoder {
+public class PNG extends ImageDecoder {
 
     // Public Methods ///////////////////////////////////////////////////////////////////////////////
 
@@ -54,7 +54,7 @@ public class PNG implements ImageDecoder {
         // consume the header
         if ((inputStream.read() != 137) || (inputStream.read() != 80) || (inputStream.read() != 78) || (inputStream.read() != 71) ||
             (inputStream.read() != 13) || (inputStream.read() != 10) || (inputStream.read() != 26) || (inputStream.read() != 10)) {
-            System.out.println("PNG: error: input file " + name + " is not a PNG file");
+            Log.log(this, "PNG: error: input file " + name + " is not a PNG file");
             data = new int[] { };
             width = height = 0;
             return;