public static IAsyncResult BeginFillPath(
this IReadWriteBitmapData bitmapData,
Brush brush,
Path path,
DrawingOptions? drawingOptions = null,
AsyncConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function BeginFillPath (
bitmapData As IReadWriteBitmapData,
brush As Brush,
path As Path,
Optional drawingOptions As DrawingOptions = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResultpublic:
[ExtensionAttribute]
static IAsyncResult^ BeginFillPath(
IReadWriteBitmapData^ bitmapData,
Brush^ brush,
Path^ path,
DrawingOptions^ drawingOptions = nullptr,
AsyncConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member BeginFillPath :
bitmapData : IReadWriteBitmapData *
brush : Brush *
path : Path *
?drawingOptions : DrawingOptions *
?asyncConfig : AsyncConfig
(* Defaults:
let _drawingOptions = defaultArg drawingOptions null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult If the Transformation property of drawingOptions is not the identity matrix, then the path region is not cached, even if PreferCaching is enabled. To improve the performance of filling transformed paths repeatedly, apply the transformations to the path instance instead, and use the identity matrix in drawingOptions.
In .NET Framework 4.0 and above you can use also the FillPathAsync methods.
To finish the operation and to get the exception that occurred during the operation you have to call the EndFillPath method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentNullException | bitmapData, brush, or path is . |
| OverflowException | The coordinates (after a possible transformation specified in drawingOptions) are outside the bounds of an int value. |