Mercurial > hg > digilib-old
comparison servlet/src/digilib/image/JAIImageLoaderDocuImage.java @ 533:87cb3dc2aa12 digilibPDF
improved pdf generation (not done yet)
author | robcast |
---|---|
date | Fri, 09 Apr 2010 18:22:05 +0200 |
parents | 9cedd170b581 |
children | e758a49258e8 |
comparison
equal
deleted
inserted
replaced
532:6d66b4ed7f07 | 533:87cb3dc2aa12 |
---|---|
18 | 18 |
19 */ | 19 */ |
20 | 20 |
21 package digilib.image; | 21 package digilib.image; |
22 | 22 |
23 import java.awt.Image; | |
23 import java.awt.Rectangle; | 24 import java.awt.Rectangle; |
24 import java.awt.image.renderable.ParameterBlock; | 25 import java.awt.image.renderable.ParameterBlock; |
25 import java.io.File; | 26 import java.io.File; |
26 import java.io.IOException; | 27 import java.io.IOException; |
27 import java.io.OutputStream; | 28 import java.io.OutputStream; |
164 } catch (IOException e) { | 165 } catch (IOException e) { |
165 throw new FileOpException("Error writing image."); | 166 throw new FileOpException("Error writing image."); |
166 } | 167 } |
167 } | 168 } |
168 | 169 |
169 /* (non-Javadoc) | 170 @Override |
171 public Image getAwtImage() { | |
172 // TODO Auto-generated method stub | |
173 return (Image) img; | |
174 } | |
175 | |
176 /* (non-Javadoc) | |
170 * @see java.lang.Object#finalize() | 177 * @see java.lang.Object#finalize() |
171 */ | 178 */ |
172 protected void finalize() throws Throwable { | 179 protected void finalize() throws Throwable { |
173 dispose(); | 180 dispose(); |
174 super.finalize(); | 181 super.finalize(); |