fr.opensagres.xdocreport.document.images
Class SimpleImageInfo

java.lang.Object
  extended by fr.opensagres.xdocreport.document.images.SimpleImageInfo

public class SimpleImageInfo
extends Object

Code from http://blog.jaimon.co.uk/simpleimageinfo/SimpleImageInfo.java.html


Constructor Summary
SimpleImageInfo(byte[] bytes)
           
SimpleImageInfo(File file)
           
SimpleImageInfo(InputStream is)
           
 
Method Summary
 int getHeight()
           
 ImageFormat getMimeType()
           
 int getWidth()
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleImageInfo

public SimpleImageInfo(File file)
                throws IOException
Throws:
IOException

SimpleImageInfo

public SimpleImageInfo(InputStream is)
                throws IOException
Throws:
IOException

SimpleImageInfo

public SimpleImageInfo(byte[] bytes)
                throws IOException
Throws:
IOException
Method Detail

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getMimeType

public ImageFormat getMimeType()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All rights reserved.