Beispiel #1
0
        public void Test()
        {
            ScaleTransform st = new ScaleTransform(100, 1000);

            Assert.AreEqual(500, st.AtoB(50));
            Assert.AreEqual(50, st.BtoA(500));
        }
Beispiel #2
0
 public int GetTransformY(double height)
 {
     return(rec.Bottom - (int)heightST.AtoB(height));
 }
Beispiel #3
0
 public int GetTransformX(double width)
 {
     return((int)widthST.AtoB(width) + rec.Left);
 }