Mercurial > hg > digilib-old
diff servlet/src/digilib/image/DocuImage.java @ 149:04ad64b2137a
Servlet version 1.14b1
- better performance with thumbnails (really, this time :-)
- new DocuInfo class
- new Directory class
- DocuFile uses String and Directory as data members
- parameter rearrangements
author | robcast |
---|---|
date | Tue, 26 Aug 2003 22:28:43 +0200 |
parents | a32e8c80e2f2 |
children | e743b853efca |
line wrap: on
line diff
--- a/servlet/src/digilib/image/DocuImage.java Fri Aug 22 21:12:24 2003 +0200 +++ b/servlet/src/digilib/image/DocuImage.java Tue Aug 26 22:28:43 2003 +0200 @@ -14,16 +14,16 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package digilib.image; import java.awt.Rectangle; -import java.io.File; import java.io.OutputStream; +import digilib.io.DocuFile; import digilib.io.FileOpException; /** The basic class for the representation of a digilib image. @@ -46,7 +46,7 @@ * @param f Image File. * @throws FileOpException Exception thrown if any error occurs. */ - public void loadImage(File f) throws FileOpException; + public void loadImage(DocuFile f) throws FileOpException; /** This DocuImage support the loadSubImage operation. * @@ -61,7 +61,7 @@ * @param subsample * @throws FileOpException */ - public void loadSubimage(File f, Rectangle region, int subsample) + public void loadSubimage(DocuFile f, Rectangle region, int subsample) throws FileOpException; /** Writes the current image to a ServletResponse. @@ -119,7 +119,7 @@ * @param scale scaling factor * @throws ImageOpException */ - public void scale(double scale) throws ImageOpException; + public void scale(double scaleX, double scaleY) throws ImageOpException; /** Crops and scales the current image. *