public static Task<bool> FillPieAsync(
this IReadWriteBitmapData bitmapData,
Brush brush,
Rectangle bounds,
float startAngle,
float sweepAngle,
DrawingOptions? drawingOptions = null,
TaskConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function FillPieAsync (
bitmapData As IReadWriteBitmapData,
brush As Brush,
bounds As Rectangle,
startAngle As Single,
sweepAngle As Single,
Optional drawingOptions As DrawingOptions = Nothing,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of Boolean)public:
[ExtensionAttribute]
static Task<bool>^ FillPieAsync(
IReadWriteBitmapData^ bitmapData,
Brush^ brush,
Rectangle bounds,
float startAngle,
float sweepAngle,
DrawingOptions^ drawingOptions = nullptr,
TaskConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member FillPieAsync :
bitmapData : IReadWriteBitmapData *
brush : Brush *
bounds : Rectangle *
startAngle : float32 *
sweepAngle : float32 *
?drawingOptions : DrawingOptions *
?asyncConfig : TaskConfig
(* Defaults:
let _drawingOptions = defaultArg drawingOptions null
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task<bool> The pie shape is defined by an arc of an ellipse and the two radial lines that intersect with the endpoints of the arc.
This method does not use optimized shortcuts. If the same pie shape is filled repeatedly, creating a Path with PreferCaching enabled and adding the pie to it can provide a better performance.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentNullException | bitmapData or brush is . |
| OverflowException | The coordinates (after a possible transformation specified in drawingOptions) are outside the bounds of an int value. |
| TaskCanceledException | The operation has been canceled and the ThrowIfCanceled property in asyncConfig was . This exception is thrown when the result is awaited. |