JPedal Java PDF library 4.70b22 API Documentation - http://www.jpedal.org

org.jpedal.utils
Class DPIFactory

java.lang.Object
  extended by org.jpedal.utils.DPIFactory

public class DPIFactory
extends java.lang.Object


Constructor Summary
DPIFactory()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DPIFactory

public DPIFactory()
Method Detail

adjustScaling

public float adjustScaling(float scaling)
Corrects the image scaling to take into account the user specified DPI value

Parameters:
scaling - :: Raw scaling value before DPI is applied (DPI of 72 is default)
Returns:
Corrected scaling in the form of a float

removeScaling

public float removeScaling(float scaling)
Corrects the image scaling to take into account the user specified DPI value

Parameters:
scaling - :: Raw scaling value before DPI is applied (DPI of 72 is default)
Returns:
Corrected scaling in the form of a float

getDpi

public float getDpi()
Get the current value of the user defined DPI (default = 72)

Returns:
:: The current DPI value as a float

setDpi

public void setDpi(float dpi)
Sets the current DPI to the input value dpi

Parameters:
dpi - :: The new dpi value expressed as a float

JPedal Java PDF library 4.70b22 API Documentation - http://www.jpedal.org

JPedal Java PDF library 4.70b22 API Documentation - http://www.jpedal.org