|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.render.image.ImageRenderUtils
public class ImageRenderUtils
Convenient utility methods for rendering of images.
Constructor Summary | |
---|---|
ImageRenderUtils()
|
Method Summary | |
---|---|
static ImageDimensions |
dimensionsForImage(javax.imageio.stream.ImageInputStream inputStream)
Helper class that uses an ImageReader to determine the width and height of an image. |
static ImageDimensions |
dimensionsForImage(java.io.InputStream is)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageRenderUtils()
Method Detail |
---|
public static ImageDimensions dimensionsForImage(javax.imageio.stream.ImageInputStream inputStream) throws java.io.IOException
ImageReader
to determine the width and height of an image.
Doesn't rasterize the whole image and works well even with very large images (e.g. 15,000 x 15,000 px).
java.io.IOException
public static ImageDimensions dimensionsForImage(java.io.InputStream is) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |