Package eu.europa.esig.dss.pdf.visible
Class DPIUtils
java.lang.Object
eu.europa.esig.dss.pdf.visible.DPIUtils
Contains util methods for DPI processing
-
Method Summary
Modifier and TypeMethodDescriptionstatic floatcomputeProperSize(float x, float dpi) Converts to full quality with the given DPI respectively to a page DPIstatic intGets the given or default of none is providedstatic floatConverts the value to be displayed on a pagestatic intReturns text DPI (300)
-
Method Details
-
getTextDpi
public static int getTextDpi()Returns text DPI (300)- Returns:
- text dpi (300)
-
getDpi
Gets the given or default of none is provided- Parameters:
dpi-Integer- Returns:
- dpi
-
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
Converts the value to be displayed on a page- Parameters:
dpi-Integerof the image/text- Returns:
- the converted page DPI
-