コード例 #1
0
        public void Test_TransformScale()
        {
            DrawableAffine affine = new DrawableAffine();

            affine.TransformScale(4.0, 2.0);

            Assert.Equal(4.0, affine.ScaleX);
            Assert.Equal(2.0, affine.ScaleY);
            Assert.Equal(0.0, affine.ShearX);
            Assert.Equal(0.0, affine.ShearY);
            Assert.Equal(0.0, affine.TranslateX);
            Assert.Equal(0.0, affine.TranslateY);
        }
コード例 #2
0
            public void ShouldSetThePropertiesToTheCorrectValue()
            {
                var affine = new DrawableAffine();

                affine.TransformScale(4.0, 2.0);

                Assert.Equal(4.0, affine.ScaleX);
                Assert.Equal(2.0, affine.ScaleY);
                Assert.Equal(0.0, affine.ShearX);
                Assert.Equal(0.0, affine.ShearY);
                Assert.Equal(0.0, affine.TranslateX);
                Assert.Equal(0.0, affine.TranslateY);
            }
コード例 #3
0
 public void Scale(double x, double y)
 {
     affineMatrix.TransformScale(x, y);
 }