Пример #1
0
        public void B()
        {
            var scale = new ScaleTransform(800, 600, InterpolaterMode.Lanczos3);

            Assert.Equal("scale(800,600,lanczos3)", scale.Canonicalize());

            scale = ScaleTransform.Create(CallSyntax.Parse(scale.Canonicalize()));

            Assert.Equal(800, scale.Width);
            Assert.Equal(600, scale.Height);
            Assert.Equal(InterpolaterMode.Lanczos3, scale.Mode);
        }