changeset 463:d76a9e3f1ec9

Servlet version 1.10b - JAIDocuImage loads Flashpix - refactored image detection code into DocuImage - DocuImage has new methods identify() and getSupportedFormats()
author robcast
date Mon, 13 Feb 2006 20:57:18 +0100
parents 03ff7238c9d4
children f1f710ff14ad
files servlet/src/digilib/image/DocuImage.java servlet/src/digilib/io/ImageFile.java
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/servlet/src/digilib/image/DocuImage.java	Mon Feb 13 13:01:42 2006 +0100
+++ b/servlet/src/digilib/image/DocuImage.java	Mon Feb 13 20:57:18 2006 +0100
@@ -23,6 +23,7 @@
 import java.awt.Rectangle;
 import java.io.IOException;
 import java.io.OutputStream;
+import java.util.Iterator;
 
 import digilib.io.ImageFile;
 import digilib.io.FileOpException;
@@ -215,4 +216,9 @@
      */
     public boolean identify(ImageFile imgf) throws IOException;
 
+    /**
+     * Returns a list of supported image formats
+     */
+	public Iterator getSupportedFormats();
+
 }
--- a/servlet/src/digilib/io/ImageFile.java	Mon Feb 13 13:01:42 2006 +0100
+++ b/servlet/src/digilib/io/ImageFile.java	Mon Feb 13 20:57:18 2006 +0100
@@ -93,6 +93,10 @@
 	 */
 	public void setSize(ImageSize imageSize) {
 		this.pixelSize = imageSize;
+		// pass on to parent
+		if (this.parent != null) {
+			this.parent.setAspect(imageSize);
+		}
 	}
 
 	/**