|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.ss.util.ImageUtils
public class ImageUtils
| Field Summary | |
|---|---|
static int |
PIXEL_DPI
|
| Constructor Summary | |
|---|---|
ImageUtils()
|
|
| Method Summary | |
|---|---|
static java.awt.Dimension |
getImageDimension(java.io.InputStream is,
int type)
Return the dimension of this image |
static int[] |
getResolution(javax.imageio.ImageReader r)
The metadata of PNG and JPEG can contain the width of a pixel in millimeters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PIXEL_DPI
| Constructor Detail |
|---|
public ImageUtils()
| Method Detail |
|---|
public static java.awt.Dimension getImageDimension(java.io.InputStream is,
int type)
is - the stream containing the image datatype - type of the picture: Workbook.PICTURE_TYPE_JPEG,
Workbook.PICTURE_TYPE_PNG or Workbook.PICTURE_TYPE_DIB
public static int[] getResolution(javax.imageio.ImageReader r)
throws java.io.IOException
25.4/HorizontalPixelSize
and 25.4/VerticalPixelSize. Where 25.4 is the number of mm in inch.
{horisontalPdi, verticalDpi}.
{96, 96} is the default.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||