public void Test() { ScaleTransform st = new ScaleTransform(100, 1000); Assert.AreEqual(500, st.AtoB(50)); Assert.AreEqual(50, st.BtoA(500)); }
public int GetTransformY(double height) { return(rec.Bottom - (int)heightST.AtoB(height)); }
public int GetTransformX(double width) { return((int)widthST.AtoB(width) + rec.Left); }