I need a simple code snippet that allows me to zoom in/out a displayed image when using the GdViewerBox in C#.
My library version is 9.4.0.12
I have tried the following:
Code: Select all
GdViewerBox.LockViewer = true;
GdViewerBox.Zoom = GdViewerBox.Zoom * 1.1;
GdViewerBox.ZoomIN(); // Tried both this and setting zoom individually
GdViewerBox.Invalidate(true);
GdViewerBox.Redraw();
GdViewerBox.Refresh();
GdViewerBox.LockViewer = false;
The best I could do was
Code: Select all
GdViewerBox.Zoom = GdViewerBox.Zoom * 1.1;
Thanks for your help
Brendan