public static IAsyncResult BeginFillPolygon(
this IReadWriteBitmapData bitmapData,
Brush brush,
IEnumerable<Point> points,
DrawingOptions? drawingOptions = null,
AsyncConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function BeginFillPolygon (
bitmapData As IReadWriteBitmapData,
brush As Brush,
points As IEnumerable(Of Point),
Optional drawingOptions As DrawingOptions = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResultpublic:
[ExtensionAttribute]
static IAsyncResult^ BeginFillPolygon(
IReadWriteBitmapData^ bitmapData,
Brush^ brush,
IEnumerable<Point>^ points,
DrawingOptions^ drawingOptions = nullptr,
AsyncConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member BeginFillPolygon :
bitmapData : IReadWriteBitmapData *
brush : Brush *
points : IEnumerable<Point> *
?drawingOptions : DrawingOptions *
?asyncConfig : AsyncConfig
(* Defaults:
let _drawingOptions = defaultArg drawingOptions null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult Every pair of two consecutive points specifies a side of the polygon. In addition, if the last point and the first point do not coincide, they specify the last side of the polygon.
This method does not use optimized shortcuts. If the same polygon is filled repeatedly, creating a Path with PreferCaching enabled and adding the polygon to it can provide a better performance.
In .NET Framework 4.0 and above you can use also the FillPolygonAsync methods.
To finish the operation and to get the exception that occurred during the operation you have to call the EndFillPolygon method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentNullException | bitmapData, brush, or points is . |
| OverflowException | The coordinates (after a possible transformation specified in drawingOptions) are outside the bounds of an int value. |