Class PixelDensity


  • public final class PixelDensity
    extends java.lang.Object
    Used to specify pixel density and physical dimensions when reading or storing image information.
    • Method Detail

      • createUnitless

        public static PixelDensity createUnitless​(double x,
                                                  double y)
      • createFromPixelsPerInch

        public static PixelDensity createFromPixelsPerInch​(double x,
                                                           double y)
      • createFromPixelsPerMetre

        public static PixelDensity createFromPixelsPerMetre​(double x,
                                                            double y)
      • createFromPixelsPerCentimetre

        public static PixelDensity createFromPixelsPerCentimetre​(double x,
                                                                 double y)
      • isUnitless

        public boolean isUnitless()
      • isInInches

        public boolean isInInches()
      • isInCentimetres

        public boolean isInCentimetres()
      • isInMetres

        public boolean isInMetres()
      • getRawHorizontalDensity

        public double getRawHorizontalDensity()
      • getRawVerticalDensity

        public double getRawVerticalDensity()
      • horizontalDensityInches

        public double horizontalDensityInches()
      • verticalDensityInches

        public double verticalDensityInches()
      • horizontalDensityMetres

        public double horizontalDensityMetres()
      • verticalDensityMetres

        public double verticalDensityMetres()
      • horizontalDensityCentimetres

        public double horizontalDensityCentimetres()
      • verticalDensityCentimetres

        public double verticalDensityCentimetres()