Click or drag to resize

IMcFeaturesClip Method

Clips a set of features to a given rectangle.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
Sub Clip ( 
	left As Integer,
	top As Integer,
	right As Integer,
	bottom As Integer
)

Parameters

left
Type: SystemInt32
the left side of the clipping rectangle
top
Type: SystemInt32
the upper side of the clipping rectangle
right
Type: SystemInt32
the right side of the clipping rectangle
bottom
Type: SystemInt32
the lower side of the clipping rectangle
Remarks
After clipping, the resulting features are guaranteed to lie within the rectangle. If a McRegions has the mcofKeepRegionsAsUnion OptionFlags bit set, then if the sub-regions are completely outside the rectangle, the region is now empty. If the features were completely inside the rectangle, they are unchanged. The ChangeCounter property will be unchanged if no clipping occurs. For McPoints type features, any points that fall outside of the given rectangle are removed. This may leave the set of points empty. For a McLines or a McRegions with the mcofKeepRegionsAsUnion OptionFlags bit clear, if a line or region feature is completely outside of the clipping rectangle, then that feature is removed. This may leave the set of features empty (IsEmpty will be true). Polylines that are not completely outside of the clipping rectangle are clipped to the rectangle bounds and adjacent duplicate points are condensed. Regions of type mcftEllipse will become type mcftOutline if the boundary is clipped.
See Also