Package org.apache.commons.imaging.formats.png

# Class PhysicalScale

java.lang.Object
org.apache.commons.imaging.formats.png.PhysicalScale

public final class PhysicalScale extends Object
Used to specify physical scale when reading or storing image information.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final PhysicalScale`
  `UNDEFINED`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static PhysicalScale`
  `createFromMeters(double x, double y)`
  `static PhysicalScale`
  `createFromRadians(double x, double y)`
  `double`
  `getHorizontalUnitsPerPixel()`
  `double`
  `getVerticalUnitsPerPixel()`
  `boolean`
  `isInMeters()`
  `boolean`
  `isInRadians()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### UNDEFINED

    public static final PhysicalScale UNDEFINED

- ## Method Details

  - ### createFromMeters

    public static PhysicalScale createFromMeters(double x, double y)

  - ### createFromRadians

    public static PhysicalScale createFromRadians(double x, double y)

  - ### getHorizontalUnitsPerPixel

    public double getHorizontalUnitsPerPixel()

  - ### getVerticalUnitsPerPixel

    public double getVerticalUnitsPerPixel()

  - ### isInMeters

    public boolean isInMeters()

  - ### isInRadians

    public boolean isInRadians()