BitmapViewer control can be used not only to display the image at the screen. Using special controls it can process user input at the displayed image. For example, it can zoom an image at mouse click, pan it on mouse move, or select a portion of the image. These controls are called controllers. There are two kinds of controllers - navigators and rubberbands.
Navigator is a control which specifies how the user can navigate the image (scroll, or zoom). For example, this control can zoom the image in by the mouse click (ZoomInNavigator). To associate it with the BitmapViewer, you should use the property Navigator.
Rubberband is a geometric shape which can be added to the BitmapViewer, moved, or resized. Graphics Mill for .NET currently supports three kinds of rubberbands: rectangles, ellipses and a special rubberband that allows drawing vector objects with the BitmapViewer control. You can read more about the latter type of the rubberbands in the Using V-objects With the BitmapViewer Control topic.
To associate a rubberband with the BitmapViewer, use the property Rubberband.
You can associate an user input controller to the BitmapViewer in design time in the following way:
It should be looking similar to the following screenshots:
You can also modify these properties in the run-time. It is convenient when you are creating the toolbar.
Graphics Mill for .NET is shipped with the following controllers:
All controllers except of VObjectsRubberband are located in the Aurigma.GraphicsMill.WinControls.dll assembly. The VObjectsRubberband is located in the Aurigma.GraphicsMill.WinControls.VectorObjects.dll assembly.