Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / DrawPieFilled

DrawPieFilled method

Draws a filled pie on the specified position with the specified width and height.

Syntax

Boolean DrawPieFilled(nLeft As Number, nTop As Number, nWidth As Number, nHeight As Number, nAngleStart As Number, nAngleSweep As Number, nFillColor As Number, nFillOpacity As Number, bAntiAliasing As Boolean)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
nLeftNumberYesSpecifies the horizontal coordinate.
nTopNumberYesSpecifies the vertical coordinate.
nWidthNumberYesSpecifies the width.
nHeightNumberYesSpecifies the height.
nAngleStartNumberYesSpecifies the start angle.
nAngleSweepNumberYesSpecifies the sweep angle.
nFillColorNumberYesSpecifies the fill color.
nFillOpacityNumberNoOptional parameter containing the opacity percentage (where 0% is completely transparent).
bAntiAliasingBooleanNoOptional 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 // Creates a new transparent image
2 MarblecoreImaging.Create(150, 150, true);
3 
4 // Execute the operation
5 MarblecoreImaging.DrawPieFilled(25, 25, 100, 100, 0, 240, 16711680);
6 
7 // Save the modified image to the specified file
8 MarblecoreImaging.SaveToFile("example-drawpiefilled.jpg");

Category

Drawing

See also

DrawArc | DrawArrow | DrawBackground | DrawBezier | DrawCheckerboard | DrawCurve | DrawCurveBorder | DrawCurveFilled | DrawCurveGradient | DrawEllipse | DrawEllipseBorder | DrawEllipseFilled | DrawEllipseGradient | DrawFloodFill | DrawLine | DrawPie | DrawPieBorder | 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