Ejemplo n.º 1
0
        /*This is called to reset the map back to its original
         * 1.0 scale as well as centering it about its original
         * middle.*/
        public void ScaleMapDefault()
        {
            ScaleTransform ST = new ScaleTransform();

            ST.ScaleX = 1;
            ST.ScaleY = 1;
            imgbrush.RelativeTransform = ST;

            TranslateTransform TT;

            TT = new TranslateTransform(-TTX, -TTY);

            imgbrush.ClearValue(ImageBrush.TransformProperty);

            this.Update();
        }