Package com.pdftools.geometry.units
Class Resolution
java.lang.Object
com.pdftools.geometry.units.Resolution
The resolution defines the spatial dot density, e.g. of images.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
xDpi
public double xDpiHorizontal resolution in DPI (dots per inch)
-
yDpi
public double yDpiVertical resolution in DPI (dots per inch)
-
-
Constructor Details
-
Resolution
public Resolution(double xDpi, double yDpi) -
Resolution
public Resolution(double dpi)
-
-
Method Details
-
getXDpi
public double getXDpi()GetsxDpi -
setXDpi
public void setXDpi(double xDpi) SetsxDpi -
getYDpi
public double getYDpi()GetsyDpi -
setYDpi
public void setYDpi(double yDpi) SetsyDpi -
calculateSize
Calculate the physical size of an object, e.g. an image, at that resolution.- Parameters:
pixels- The size of the image in pixels- Returns:
- The physical size
-
equals
-
hashCode
public int hashCode() -
toString
-