Description

Returns the entire features' pixel bounds

Return Type

None  

Syntax

object.GetBounds Left, Top, Right, Bottom

The GetBounds Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McRegions.
LeftRequired. A Long value.

left side of the region

TopRequired. A Long value.

upper side of the region

RightRequired. A Long value.

right side of the region

BottomRequired. A Long value.

bottom side of the region

Remarks

This method returns all of the features bounding box, rounded to the nearest integral pixel locations. Use the BoundingRect property or the GetFeatureBoundingBox method to access the bounds of individual features or to get the bounds to sub-pixel accuracy.

This method returns its results as four separate values. The BoundingRect property exposes the bounds of all or selected features as a SINGLERECT, which may be more convenient in many situations.

If this McFeatures is IsReset (as it was after it was first created and after a Reset call), then the bounds returned will be that of a backing McImage (this is the bounds that AccessMaskedImageData will use for an IsReset McFeatures).

Otherwise, if this McFeatures IsEmpty then left will be returned as greater than right, and top will be returned as less than bottom (an illegal bounds).

If there are any features, then the smallest rectangular bounds enclosing all of the features, rounded to the nearest pixel, will be returned. In this case left will be less or equal to right, and top will be less or equal to bottom.