RgnMarkingMode property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax short RgnMarkingMode

Overview:  Refer to Creating and Using a Bitmap Region.

Remarks

Enables automatic creation of a bitmap region, based on MouseDown, MouseMove, and MouseUp events.

This method supports creation of a rectangle, rounded rectangle, ellipse, or freehand region. It automatically handles scaling differences between the displayed image and the bitmap. On the MouseDown event, it begins outlining where the region will appear on the screen. It updates the outline on each MouseMove event. Then, on the MouseUp event, it deletes the displayed outline and creates the bitmap region. To make an outline of the region visible at that point, you must set the RgnFrameType property.

Value

Meaning

RGNMARK_NONE

Disable automatic creation of a bitmap region.

RGNMARK_RECT

Enable creation of a rectangular region.

RGNMARK_ROUNDRECT

Enable creation of a rounded rectangular region.

RGNMARK_ELLIPSE

Enable creation of an elliptical region.

RGNMARK_FREEHAND

Enable creation of a freehand region, which is actually a polygonal region, with one vertex for each MouseMove event.

See Also

Elements:  RgnChange event, RgnFrameType property

Topics:  Raster Images: Creating and Using a Region