Tip
See the Remarks section of the Resize method for more details.
public static IAsyncResult BeginResize(
this IReadableBitmapData source,
Size newSize,
ScalingMode scalingMode = ScalingMode.Auto,
bool keepAspectRatio = false,
AsyncConfig? asyncConfig = null
)
<ExtensionAttribute>
Public Shared Function BeginResize (
source As IReadableBitmapData,
newSize As Size,
Optional scalingMode As ScalingMode = ScalingMode.Auto,
Optional keepAspectRatio As Boolean = false,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
[ExtensionAttribute]
static IAsyncResult^ BeginResize(
IReadableBitmapData^ source,
Size newSize,
ScalingMode scalingMode = ScalingMode::Auto,
bool keepAspectRatio = false,
AsyncConfig^ asyncConfig = nullptr
)
[<ExtensionAttribute>]
static member BeginResize :
source : IReadableBitmapData *
newSize : Size *
?scalingMode : ScalingMode *
?keepAspectRatio : bool *
?asyncConfig : AsyncConfig
(* Defaults:
let _scalingMode = defaultArg scalingMode ScalingMode.Auto
let _keepAspectRatio = defaultArg keepAspectRatio false
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the ResizeAsync method.
To get the result or the exception that occurred during the operation you have to call the EndResize method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.