/// <summary>
        /// Zooms the image around the image coordinate supplied
        /// in [centerX, centerY] by value, that is provided
        /// by parameter zoomFactor. The zoomFactor describe the grade of zooming
        /// in per cents.
        /// </summary>
        /// <param name="centerX"> Column coordinate of zoom center </param>
        /// <param name="centerY"> Row coordinate of zoom center </param>
        /// <param name="zoomFactor"> Zoom value in percenetage </param>
        public void ZoomImage(double centerX, double centerY, int zoomFactor)
        {
            this.displayZoomValue = zoomFactor;

            // zoom image
            hWndControl.zoomByGUIHandle(displayZoomValue);

            // repaint the graphic window
            this.Invalidate();
        }
Ejemplo n.º 2
0
 private void ZoomUpDown_ValueChanged(object sender, System.EventArgs e)
 {
     hWndControl.zoomByGUIHandle((int)ZoomUpDown.Value);
 }