See Also Examples Applies To
Draws a rectangle into the native image.
Syntax
object.DrawRectangle (nDstX, nDstY, nWidth, nHeight, nPenWidth, nColor, bAntiAlias)
The DrawRectangle syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nDstX | Required. Long. Specifies the x-coordinate of the upper-left corner of the rectangle. |
| nDstY | Required. Long. Specifies the y-coordinate of the upper-left corner of the rectangle. |
| nWidth | Required. Long. Specifies the width of the rectangle. |
| nHeight | Required. Long. Specifies the height of the rectangle. |
| nPenWidth | Required. Long. The width in pixel of the pen used to draw the rectangle. |
| nColor | Optional. Long. Default value is Black. ARGB long color value used to draw the rectangle. |
| bAntiAlias | Optional. Boolean. Default value is False. Set to True to apply the Antialiasing algorithm else False. |
Returns
Remarks
The ImagingStatus constants are defined HERE
Category
Draw (Lines and Shapes)