Accusoft ImagXpress 13
DrawRoundRect Method
The left component (in pixels) of the top-left coordinate for the rectangle.
The top component (in pixels) of the top-left coordinate for the rectangle.
The right component (in pixels) of the bottom-right coordinate for the rectangle.
The bottom component (in pixels) of the bottom-right coordinate for the rectangle.
The width (in pixels) of the ellipse used to draw the rounded corners.
The height (in pixels) of the ellipse used to draw the rounded corners.

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

Description
Draws a rectangle with rounded corners onto the image.
Syntax
Visual Basic
Public Sub DrawRoundRect( _
   ByVal x1 As Long, _
   ByVal y1 As Long, _
   ByVal x2 As Long, _
   ByVal y2 As Long, _
   ByVal roundW As Long, _
   ByVal roundH As Long, _
   ByVal Color As OLE_COLOR _
) 
Parameters
x1
The left component (in pixels) of the top-left coordinate for the rectangle.
y1
The top component (in pixels) of the top-left coordinate for the rectangle.
x2
The right component (in pixels) of the bottom-right coordinate for the rectangle.
y2
The bottom component (in pixels) of the bottom-right coordinate for the rectangle.
roundW
The width (in pixels) of the ellipse used to draw the rounded corners.
roundH
The height (in pixels) of the ellipse used to draw the rounded corners.
Color

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

Remarks

To fill a rounded rectangle, set the DrawFillColor and DrawFillStyle properties of the object on which the rectangle is drawn.

The width of the line used to draw the rectangle depends on the setting of the DrawWidth property. The way the rectangle is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.

This method draws into the control's DIB.

See Also

ImagXpress Object  | ImagXpress Members  | DrawWidth Property  | DrawStyle Property  | DrawMode Property  | DrawFillStyle Property  | DrawFillColor Property

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback