Documentation / Marblecore Imaging / Methods / DrawRoundRectangleFilled
DrawRoundRectangleFilled method
Draws a filled round rectangle on the specified position with the specified width and height.
Syntax
Boolean DrawRoundRectangleFilled(nLeft As Number, nTop As Number, nWidth As Number, nHeight As Number, nRadius As Number, nFillColor As Number, nFillOpacity As Number, bAntiAliasing As Boolean)
Return value
Returns true if the function succeeded.
Parameters
Parameter | Type | Required | Description |
nLeft | Number | Yes | Specifies the horizontal coordinate. |
nTop | Number | Yes | Specifies the vertical coordinate. |
nWidth | Number | Yes | Specifies the width. |
nHeight | Number | Yes | Specifies the height. |
nRadius | Number | Yes | Specifies the radius of the corners. |
nFillColor | Number | Yes | Specifies the fill color of the rectangle. |
nFillOpacity | Number | No | Optional parameter containing the opacity percentage (where 0% is completely transparent). |
bAntiAliasing | Boolean | No | Optional parameter enabling or disabling anti-aliasing. Enabled by default. |
Example
The example below shows how to use the method. If you take a look at the example code, assume there is a reference to the Marblecore Imaging object with the name 'MarblecoreImaging'. Transparent parts of the image are displayed using a checkerboard pattern.
1
2 MarblecoreImaging.Create(150, 150, true);
3
4
5 MarblecoreImaging.DrawRoundRectangleFilled(25, 25, 100, 100, 10, 16711680);
6
7
8 MarblecoreImaging.SaveToFile("example-drawroundrectanglefilled.jpg");
Category
Drawing
See also
DrawArc |
DrawArrow |
DrawBackground |
DrawBezier |
DrawCheckerboard |
DrawCurve |
DrawCurveBorder |
DrawCurveFilled |
DrawCurveGradient |
DrawEllipse |
DrawEllipseBorder |
DrawEllipseFilled |
DrawEllipseGradient |
DrawFloodFill |
DrawLine |
DrawPie |
DrawPieBorder |
DrawPieFilled |
DrawPieGradient |
DrawPixel |
DrawPolygon |
DrawPolygonBorder |
DrawPolygonFilled |
DrawPolygonGradient |
DrawRectangle |
DrawRectangleBorder |
DrawRectangleFilled |
DrawRectangleGradient |
DrawRectangleTransparent |
DrawRhombus |
DrawRhombusBorder |
DrawRhombusFilled |
DrawRhombusGradient |
DrawRoundRectangle |
DrawRoundRectangleBorder |
DrawRoundRectangleGradient |
DrawTriangle |
DrawTriangleBorder |
DrawTriangleFilled |
DrawTriangleGradient |
GetPixelColor |
LineTo |
MoveTo