Draws a rectangle with rounded corners onto the image.
- 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.
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.