You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by cm...@apache.org on 2009/09/12 18:17:38 UTC
svn commit: r814182 - in /commons/proper/sanselan/trunk: RELEASE_NOTES
src/main/java/org/apache/sanselan/ImageInfo.java
Author: cmchen
Date: Sat Sep 12 16:17:38 2009
New Revision: 814182
URL: http://svn.apache.org/viewvc?rev=814182&view=rev
Log:
* Added accessor methods for a number of ImageInfo properties.
Modified:
commons/proper/sanselan/trunk/RELEASE_NOTES
commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/ImageInfo.java
Modified: commons/proper/sanselan/trunk/RELEASE_NOTES
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/RELEASE_NOTES?rev=814182&r1=814181&r2=814182&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/RELEASE_NOTES (original)
+++ commons/proper/sanselan/trunk/RELEASE_NOTES Sat Sep 12 16:17:38 2009
@@ -19,7 +19,7 @@
* Fixed a bug in which gifs have incorrect size information in the the Logical Screen Descriptor.
This appears to be a bug in how Microsoft Office writes gifs.
The Image Descriptor has the correct value.
-
+ * Added accessor methods for a number of ImageInfo properties.
Release 0.97
------------
Modified: commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/ImageInfo.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/ImageInfo.java?rev=814182&r1=814181&r2=814182&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/ImageInfo.java (original)
+++ commons/proper/sanselan/trunk/src/main/java/org/apache/sanselan/ImageInfo.java Sat Sep 12 16:17:38 2009
@@ -243,7 +243,7 @@
/**
* Returns true if the image is progressive or interlaced.
*/
- public boolean getIsProgressive()
+ public boolean isProgressive()
{
return isProgressive;
}
@@ -343,4 +343,32 @@
}
+ /**
+ * Returns a description of the file format, ie. format version.
+ */
+ public String getFormatDetails() {
+ return formatDetails;
+ }
+
+ /**
+ * Returns true if the image has transparency.
+ */
+ public boolean isTransparent() {
+ return isTransparent;
+ }
+
+ /**
+ * Returns true if the image uses a palette.
+ */
+ public boolean usesPalette() {
+ return usesPalette;
+ }
+
+ /**
+ * Returns a description of the compression algorithm, if any.
+ */
+ public String getCompressionAlgorithm() {
+ return compressionAlgorithm;
+ }
+
}
\ No newline at end of file