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 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
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
-Integer
of the image/text- Returns:
- the converted page DPI
-