de.innovationgate.utils
public class SimpleImageInfo extends java.lang.Object
Constructor and Description |
---|
SimpleImageInfo(byte[] bytes)
Analyze image data in a byte array
|
SimpleImageInfo(java.io.File file)
Analyze an image file
|
SimpleImageInfo(java.io.InputStream is)
Analyze image data on an input stream
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the height of the image in pixels
|
java.lang.String |
getMimeType()
Returns the images mime type
|
int |
getWidth()
Returns the width of the image in pixels
|
void |
setHeight(int height)
Sets the height of the image in pixels
|
void |
setMimeType(java.lang.String mimeType)
Sets the images mime type
|
void |
setWidth(int width)
Sets the width of the image in pixels
|
java.lang.String |
toString() |
public SimpleImageInfo(java.io.File file) throws java.io.IOException
file
- The filejava.io.IOException
public SimpleImageInfo(java.io.InputStream is) throws java.io.IOException
is
- The streamjava.io.IOException
public SimpleImageInfo(byte[] bytes) throws java.io.IOException
bytes
- The arrayjava.io.IOException
public int getHeight()
public void setHeight(int height)
public int getWidth()
public void setWidth(int width)
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
public java.lang.String toString()
toString
in class java.lang.Object