public static Task<bool> FillEllipseAsync(
this IReadWriteBitmapData bitmapData,
Color32 color,
Rectangle bounds,
DrawingOptions? drawingOptions = null,
TaskConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function FillEllipseAsync (
bitmapData As IReadWriteBitmapData,
color As Color32,
bounds As Rectangle,
Optional drawingOptions As DrawingOptions = Nothing,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of Boolean)public:
[ExtensionAttribute]
static Task<bool>^ FillEllipseAsync(
IReadWriteBitmapData^ bitmapData,
Color32 color,
Rectangle bounds,
DrawingOptions^ drawingOptions = nullptr,
TaskConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member FillEllipseAsync :
bitmapData : IReadWriteBitmapData *
color : Color32 *
bounds : Rectangle *
?drawingOptions : DrawingOptions *
?asyncConfig : TaskConfig
(* Defaults:
let _drawingOptions = defaultArg drawingOptions null
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task<bool> When filling an ellipse, the right/bottom values of the bounding rectangle are exclusive, so if the width or height is zero, then nothing is drawn.
This method does not use optimized shortcuts. If the same ellipse is filled repeatedly, creating a Path with PreferCaching enabled and adding the ellipse 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 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. |