comparison servlet/src/digilib/io/ImageFile.java @ 170:d40922628e4a

Servlet Version 1.16b2 with new DigilibParameter code. - more generic class for request parameters - like already done for DiglibConfig - changes in JSPs for new request stuff - changes in ImageSize class so size=0 is "wildcard" - missing dw and dh parameters now treated as wildcards - changed package name in imageinfo class
author robcast
date Wed, 29 Oct 2003 22:47:15 +0100
parents e743b853efca
children c633e97cac12
comparison
equal deleted inserted replaced
169:93dd5e1c57d3 170:d40922628e4a
122 * @return boolean 122 * @return boolean
123 */ 123 */
124 public boolean isChecked() { 124 public boolean isChecked() {
125 return (pixelSize != null); 125 return (pixelSize != null);
126 } 126 }
127
128 /** Returns the aspect ratio of the image (width/height).
129 *
130 * @return
131 */
132 public double getAspect() {
133 return (pixelSize != null) ? pixelSize.getAspect() : 0;
134 }
127 135
128 } 136 }