com.arsdigita.mimetypes.image
Class BMPImageSizer
java.lang.Object
com.arsdigita.mimetypes.image.ImageSizer
com.arsdigita.mimetypes.image.BMPImageSizer
- public class BMPImageSizer
- extends ImageSizer
Implements the ImageSizer interface for BMP images
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/mimetypes/image/BMPImageSizer.java#5 $
- Author:
- Stanislav Freidin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
BMPImageSizer
protected BMPImageSizer()
computeSize
public Dimension computeSize(DataInputStream in)
throws IOException
- Read the input stream, determine the size of the image,
and return it.
WARNING ! Only works for BMP files whose width and height are
less than 32767 pixels.
- Specified by:
computeSize in class ImageSizer
- Parameters:
in - The InputStream to read
- Returns:
- The size of the image, or null on failure
- Throws:
IOException
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2337 UTC