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

## Class PhysicalScale

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

-     public class PhysicalScale
      extends Object

  Used to specify physical scale when reading or storing image information.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static PhysicalScale` | `UNDEFINED` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    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 Detail

    - #### UNDEFINED

          public static final PhysicalScale UNDEFINED

  - ### Method Detail

    - #### createFromMeters

          public static PhysicalScale createFromMeters​(double x,
                                                       double y)

    - #### createFromRadians

          public static PhysicalScale createFromRadians​(double x,
                                                        double y)

    - #### isInMeters

          public boolean isInMeters()

    - #### isInRadians

          public boolean isInRadians()

    - #### getHorizontalUnitsPerPixel

          public double getHorizontalUnitsPerPixel()

    - #### getVerticalUnitsPerPixel

          public double getVerticalUnitsPerPixel()