- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- BaseViewer Class
- Bitmap Class
- BitmapViewer Class
- ColorSpace Enumeration
- ImageLoadMode Enumeration
- PanNavigator Class
- PointF Class
- Rectangle Class
- RectangleController Class
- RectangleRubberband Class
- ResizeMode Enumeration
- ScrollBarsStyle Enumeration
- UpdateStatus Enumeration
- UserInputController Class
- ViewerClientSideOptions Class
- ViewportAlignment Enumeration
- ZoomInNavigator Class
- ZoomMode Enumeration
- ZoomNavigator Class
- ZoomOutNavigator Class
- ZoomQuality Enumeration
- ZoomRectangleNavigator Class
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
RectangleRubberband Class
This client-side class corresponds to the RectangleRubberband server-side control and gives an opportunity to obtain access to its primary members in JavaScript.
Namespace:
GraphicsMill
Assembly:
Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
Syntax
GraphicsMill.RectangleRubberband = function();
Type.createClass(
'GraphicsMill.RectangleRubberband',
GraphicsMill.RectangleController);
Remarks
This class represents the rectangular rubberband and can be used to draw a rectangle on the BaseViewer control surface. Depending on this control properties you can resize (see resizeMode property) or move (see movable property) this rectangle by the mouse. This way this rubberband is extremely useful to make a rectangular selection on the bitmap.
To get or set the rectangle (selection) programmatically, you can use property rectangle. It will return the rectangle displayed at the BaseViewer control in coordinates of the content associated with it.
The rectangle can be resized either arbitrary, or only increase or decrease the width and height equally (i.e. preserving the rectangle proportion). It is specified by the resizeMode property. The required aspect ratio is specified with the ratio property.
You can specify whether to display a mask which shadows the image out of the rectangle. It is convenient when you use this rubberband together with the Crop transform. Use maskVisible property for it.
You can attach this control to the BaseViewer using its property BaseViewer.rubberband form the client-side code.