Package eu.europa.esig.dss.pdf.visible
Class DPIUtils
java.lang.Object
eu.europa.esig.dss.pdf.visible.DPIUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
computeProperSize
(float x, float dpi) Converts to full quality with the given DPI respectively to a page DPIstatic int
Gets the given or default of none is providedstatic float
Converts the value to be displayed on a pagestatic int
Returns text DPI (300)
-
Method Details
-
getTextDpi
public static int getTextDpi()Returns text DPI (300)- Returns:
- text dpi (300)
-
getDpi
-
computeProperSize
public static float computeProperSize(float x, float dpi) Converts to full quality with the given DPI respectively to a page DPI- Parameters:
x
- the value to convertdpi
- the dpi to use- Returns:
- converted value
-
getPageScaleFactor
-