public class Resolution
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
double |
xDpi |
Horizontal resolution in DPI (dots per inch)
|
double |
yDpi |
Vertical resolution in DPI (dots per inch)
|
Constructor | Description |
---|---|
Resolution(double dpi) |
|
Resolution(double xDpi,
double yDpi) |
Modifier and Type | Method | Description |
---|---|---|
Size |
calculateSize(Size pixels) |
Calculate the physical size of an object, e.g.
|
boolean |
equals(java.lang.Object obj) |
|
double |
getXDpi() |
Gets
xDpi |
double |
getYDpi() |
Gets
yDpi |
int |
hashCode() |
|
void |
setXDpi(double xDpi) |
Sets
xDpi |
void |
setYDpi(double yDpi) |
Sets
yDpi |
java.lang.String |
toString() |
public double xDpi
public double yDpi
public Resolution(double xDpi, double yDpi)
public Resolution(double dpi)
public double getXDpi()
xDpi
public void setXDpi(double xDpi)
xDpi
public double getYDpi()
yDpi
public void setYDpi(double yDpi)
yDpi
public Size calculateSize(Size pixels)
pixels
- The size of the image in pixelspublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object