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 and Description
    --- | ---
    `static PhysicalScale` | `UNDEFINED`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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()

Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.