ImageGlass.ImageBox.ProcessMouseZoom C# (CSharp) Method

ProcessMouseZoom() protected method

Processes zooming with the mouse. Attempts to keep the pre-zoom image pixel under the mouse after the zoom has completed.
protected ProcessMouseZoom ( bool isZoomIn, Point cursorPosition ) : void
isZoomIn bool /// if set to true zoom in, otherwise zoom out. ///
cursorPosition Point The cursor position.
return void
        protected virtual void ProcessMouseZoom(bool isZoomIn, Point cursorPosition)
        {
            PerformZoom(isZoomIn ? ImageBoxZoomActions.ZoomIn : ImageBoxZoomActions.ZoomOut, ImageBoxActionSources.User, true, cursorPosition);
        }
ImageBox