Exemplo n.º 1
0
        /// <summary>
        /// Zoom to the given location.
        /// </summary>
        /// <param name="location">The zoom focus.</param>
        /// <param name="delta">Indicates whether to zoom in or out.</param>
        public void Zoom(float x, float y, int delta)
        {
            if (!initialized)
            {
                return;
            }

            if (trans.ZoomUpdate(delta, x, y))
            {
                // Redraw
                this.Render();
            }
        }