public class DPIFactory extends Object
| Constructor and Description |
|---|
DPIFactory() |
| Modifier and Type | Method and Description |
|---|---|
float |
adjustScaling(float scaling)
Corrects the image scaling to take into account the user specified DPI value
|
float |
getDpi()
Get the current value of the user defined DPI (default = 72)
|
float |
removeScaling(float scaling)
Corrects the image scaling to take into account the user specified DPI value
|
void |
setDpi(float dpi)
Sets the current DPI to the input value dpi
|
public float adjustScaling(float scaling)
scaling - :: Raw scaling value before DPI is applied (DPI of 72 is default)public float removeScaling(float scaling)
scaling - :: Raw scaling value before DPI is applied (DPI of 72 is default)public float getDpi()
public void setDpi(float dpi)
dpi - :: The new dpi value expressed as a floatCopyright © 2017. All rights reserved.