Documentation / Marblecore Imaging / Methods / DrawCurveFilled
DrawCurveFilled method
Draws a filled cardinal spline curve on the specified position on the image using the specified color, style and opacity.
Syntax
Boolean DrawCurveFilled(strPoints As String, nFillColor As Number, nFillOpacity As Number, nTension As Number, bAntiAliasing As Boolean)
Return value
Returns true if the function succeeded.
Parameters
Parameter | Type | Required | Description |
strPoints | String | Yes | Specifies the points for the curve as a string. Each point pair is separated with a semicollon (;). Within each point the horizontal and vertical coordinate is separated with a comma (,). Example string: 0,100; 25,50; 50,0; 100,100. |
nFillColor | Number | Yes | Specifies the fill color. |
nFillOpacity | Number | No | Optional parameter containing the opacity percentage (where 0% is completely transparent). |
nTension | Number | No | Specifies how tightly the curve bends through the coordinates of the cardinal spline. Default value is 10. Zero (0) means lines without curves. |
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.DrawCurveFilled("25,75; 75,25; 125,75", 16711680);
6
7
8 MarblecoreImaging.SaveToFile("example-drawcurvefilled.jpg");
Category
Drawing
See also
DrawArc |
DrawArrow |
DrawBackground |
DrawBezier |
DrawCheckerboard |
DrawCurve |
DrawCurveBorder |
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 |
DrawRoundRectangleFilled |
DrawRoundRectangleGradient |
DrawTriangle |
DrawTriangleBorder |
DrawTriangleFilled |
DrawTriangleGradient |
GetPixelColor |
LineTo |
MoveTo