Tip
See the Remarks section of the Resize(IReadableBitmapData, Size, ScalingMode, Boolean) method for more details.
public static Task<IReadWriteBitmapData?> ResizeAsync(
this IReadableBitmapData source,
Size newSize,
ScalingMode scalingMode = ScalingMode.Auto,
bool keepAspectRatio = false,
TaskConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function ResizeAsync (
source As IReadableBitmapData,
newSize As Size,
Optional scalingMode As ScalingMode = ScalingMode.Auto,
Optional keepAspectRatio As Boolean = false,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of IReadWriteBitmapData)public:
[ExtensionAttribute]
static Task<IReadWriteBitmapData^>^ ResizeAsync(
IReadableBitmapData^ source,
Size newSize,
ScalingMode scalingMode = ScalingMode::Auto,
bool keepAspectRatio = false,
TaskConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member ResizeAsync :
source : IReadableBitmapData *
newSize : Size *
?scalingMode : ScalingMode *
?keepAspectRatio : bool *
?asyncConfig : TaskConfig
(* Defaults:
let _scalingMode = defaultArg scalingMode ScalingMode.Auto
let _keepAspectRatio = defaultArg keepAspectRatio false
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task<IReadWriteBitmapData> This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.