This documentation is for the old version. Go to the latest Graphics Mill docs

RectangleRubberband Class

This class represents the rectangular rubberband.

Namespace: Aurigma.GraphicsMill.AjaxControls
Assembly: Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)


Visual Basic
<ToolboxBitmapAttribute(GetType(RectangleRubberband), "Resources.RectangleRubberband.bmp")> _
Public Class RectangleRubberband _
	Inherits RectangleController _
	Implements IRubberband, IUserInputController, IPostBackEventHandler
[ToolboxBitmapAttribute(typeof(RectangleRubberband), "Resources.RectangleRubberband.bmp")]
public class RectangleRubberband : RectangleController, IRubberband, IUserInputController, 


You can use this class 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.

Inheritance Hierarchy

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also