anvil.core.io
Class ImageSize
java.lang.Object
|
+--anvil.core.io.ImageSize
- public final class ImageSize
- extends java.lang.Object
|
Constructor Summary |
ImageSize(java.lang.String ctype,
int w,
int h,
int c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GIF_HEADER
public static final int[] GIF_HEADER
PNG_HEADER
public static final int[] PNG_HEADER
JPEG_HEADER
public static final int[] JPEG_HEADER
ImageSize
public ImageSize(java.lang.String ctype,
int w,
int h,
int c)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getContentType
public java.lang.String getContentType()
getHeight
public int getHeight()
getWidth
public int getWidth()
getColors
public int getColors()
forImage
public static final ImageSize forImage(java.io.File file)
throws java.io.IOException
java.io.IOException
forImage
public static final ImageSize forImage(java.io.RandomAccessFile file)
throws java.io.IOException
java.io.IOException
forGIF
public static final ImageSize forGIF(java.io.RandomAccessFile file)
throws java.io.IOException
java.io.IOException
forPNG
public static final ImageSize forPNG(java.io.RandomAccessFile file)
throws java.io.IOException
java.io.IOException
forJPEG
public static final ImageSize forJPEG(java.io.RandomAccessFile file)
throws java.io.IOException
java.io.IOException