public class ImageSize
extends java.lang.Object
ImageData.getImageSize()| Constructor and Description |
|---|
ImageSize(int widthPixels,
int heightPixels)
Initializes width and height to the given values in pixels.
|
ImageSize(int widthPixels,
int heightPixels,
double horizontalResolution,
double verticalResolution)
Initializes width, height and resolution to the given values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeightPixels()
Gets the height of the image in pixels.
|
double |
getHeightPoints()
Gets the height of the image in points.
|
double |
getHorizontalResolution()
Gets the horizontal resolution in DPI.
|
double |
getVerticalResolution()
Gets the vertical resolution in DPI.
|
int |
getWidthPixels()
Gets the width of the image in pixels.
|
double |
getWidthPoints()
Gets the width of the image in points.
|
public ImageSize(int widthPixels,
int heightPixels)
widthPixels - Width in pixels.heightPixels - Height in pixels.public ImageSize(int widthPixels,
int heightPixels,
double horizontalResolution,
double verticalResolution)
widthPixels - Width in pixels.heightPixels - Height in pixels.horizontalResolution - Horizontal resolution in DPI.verticalResolution - Vertical resolution in DPI.public int getWidthPixels()
public int getHeightPixels()
public double getHorizontalResolution()
public double getVerticalResolution()
public double getWidthPoints()
public double getHeightPoints()