Note
See the AdjustGamma(IReadWriteBitmapData, Single, IDitherer, ColorChannels) method for more details about the other parameters.
public static Task<bool> AdjustGammaAsync(
this IReadWriteBitmapData bitmapData,
float gamma,
IDitherer? ditherer = null,
ColorChannels channels = ColorChannels.Rgb,
TaskConfig? asyncConfig = null
)<ExtensionAttribute>
Public Shared Function AdjustGammaAsync (
bitmapData As IReadWriteBitmapData,
gamma As Single,
Optional ditherer As IDitherer = Nothing,
Optional channels As ColorChannels = ColorChannels.Rgb,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of Boolean)public:
[ExtensionAttribute]
static Task<bool>^ AdjustGammaAsync(
IReadWriteBitmapData^ bitmapData,
float gamma,
IDitherer^ ditherer = nullptr,
ColorChannels channels = ColorChannels::Rgb,
TaskConfig^ asyncConfig = nullptr
)[<ExtensionAttribute>]
static member AdjustGammaAsync :
bitmapData : IReadWriteBitmapData *
gamma : float32 *
?ditherer : IDitherer *
?channels : ColorChannels *
?asyncConfig : TaskConfig
(* Defaults:
let _ditherer = defaultArg ditherer null
let _channels = defaultArg channels ColorChannels.Rgb
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task<bool> This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentNullException | bitmapData is . |
| ArgumentOutOfRangeException | gamma is not between 0 and 10
-or- channels is out of the defined flags. |