Click or drag to resize

IMcRegions2SetRoundedRect Method

A rounded, rotatable rectangular feature is created.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
Sub SetRoundedRect ( 
	lIndex As Integer,
	Bounds As Object,
	RoundnessXY As Object,
	Optional Angle As Double = 0
)

Parameters

lIndex
Type: SystemInt32
Index of subregion to make into a rounded rectangle. If -1, all existing regions are removed and a single rotatable rectangular region is created at index 0.
Bounds
Type: SystemObject
The bounds of the unrotated rectangle. This may be given as a length-4 numerical array in the order left,top,right,bottom or a RECT structure (SINGLERECT is the natural coordinate storage).
RoundnessXY
Type: SystemObject
The X,Y axis lengths of the ellipse rounding the corners of the rectangle as a length-2 numeric array or a POINT structure (SINGLEPOINT is the natural size storage).
Angle (Optional)
Type: SystemDouble
Rotation of the given Bounds about its center point, in degrees counterclockwise from the horizontal. This angle is constrained to the range of zero to 360.
Remarks
The FeatureType will have the mcftRoundedBoxAny bit set in its Type. The actual Type be mcftRoundedBox, mcftRoundedFreeBox, mcftRoundedSquare or mcftRoundedFreeSquare. The Type is determined from the assigned parameters and the state of the mcofDefaultFreeBox and mcofDefaultSquare bits of the OptionFlags. If both of these bits are clear (this is the default state), then any SetRoundedRect call made with the Angle argument zero will be of Type mcftRoundedBox. The McGraphObjRRect linked to features of Type mcftRoundedBox cannot be rotated by the user (i.e., the mcgsAllowRotate bit of their Style property is cleared). A SetRoundedRect call with Angle non-zero or with the mcofDefaultFreeBox bit of OptionFlags set, will create a feature of Type mcftRoundedFreeBox. The McGraphObjRRect linked to features of Type mcftRoundedFreeBox can be rotated by the user (i.e., the mcgsAllowRotate bit of their Style property is set). If the mcofDefaultSquare bit of the OptionFlags property is set, then a SetEllipse call with MajAx equal to MinAx will create a feature of Type mcftRoundedSquare. Features of this type are linked to McGraphObjRRect instances with the Square property set True.
See Also