Class Resizer.Mapping

  • Enclosing class:
    Resizer

    static final class Resizer.Mapping
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double a0  
      private double b0  
      (package private) double offset
      x and y offset used by MAP, private fields
      (package private) double scale
      x and y scales
    • Constructor Summary

      Constructors 
      Constructor Description
      Mapping​(double scaleX)  
      Mapping​(double a0, double aw, double b0, double bw)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) double dstToSrc​(double b)  
      (package private) double mapPixelCenter​(int b)  
      (package private) double srcToDst​(double a)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scale

        final double scale
        x and y scales
      • a0

        private final double a0
      • b0

        private final double b0
    • Constructor Detail

      • Mapping

        Mapping​(double a0,
                double aw,
                double b0,
                double bw)
      • Mapping

        Mapping​(double scaleX)
    • Method Detail

      • mapPixelCenter

        double mapPixelCenter​(int b)
      • dstToSrc

        double dstToSrc​(double b)
      • srcToDst

        double srcToDst​(double a)