How to select a rectangle and zoom to those coordinates

Example requests & Code samples for GdPicture Toolkits.
Post Reply
TomPreuss
Posts: 1
Joined: Wed Sep 28, 2011 2:35 pm

How to select a rectangle and zoom to those coordinates

Post by TomPreuss » Wed Sep 28, 2011 2:39 pm

I would like to give the user the ability of selecting a 'hard to read' area on the image by holding down left mouse button and then zooming into that rectangle when the user releases the mouse button.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How to select a rectangle and zoom to those coordinates

Post by Loïc » Wed Sep 28, 2011 2:46 pm

In 2 lines (the second is optional).

Code: Select all

GdViewer1.MouseMode = ViewerMouseMode.MouseModeAreaZooming
GdViewer1.MouseButtonForMouseMode = MouseButton.MouseButtonLeft

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest