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

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