public static IReadWriteBitmapData CreateBitmapData<T>(
T[,] buffer,
int pixelWidth,
KnownPixelFormat pixelFormat,
WorkingColorSpace workingColorSpace,
Color32 backColor = default,
byte alphaThreshold = 128,
Action? disposeCallback = null
)
where T : struct, new()
Public Shared Function CreateBitmapData(Of T As {Structure, New}) (
buffer As T(,),
pixelWidth As Integer,
pixelFormat As KnownPixelFormat,
workingColorSpace As WorkingColorSpace,
Optional backColor As Color32 = Nothing,
Optional alphaThreshold As Byte = 128,
Optional disposeCallback As Action = Nothing
) As IReadWriteBitmapDatapublic:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
array<T,2>^ buffer,
int pixelWidth,
KnownPixelFormat pixelFormat,
WorkingColorSpace workingColorSpace,
Color32 backColor = Color32(),
unsigned char alphaThreshold = 128,
Action^ disposeCallback = nullptr
)static member CreateBitmapData :
buffer : 'T[,] *
pixelWidth : int *
pixelFormat : KnownPixelFormat *
workingColorSpace : WorkingColorSpace *
?backColor : Color32 *
?alphaThreshold : byte *
?disposeCallback : Action
(* Defaults:
let _backColor = defaultArg backColor new Color32()
let _alphaThreshold = defaultArg alphaThreshold 128
let _disposeCallback = defaultArg disposeCallback null
*)
-> IReadWriteBitmapData when 'T : struct, new()| ArgumentNullException | buffer is . |
| ArgumentOutOfRangeException | pixelWidth is too large for the specified buffer and pixelFormat -or- pixelFormat is not one of the valid formats -or- workingColorSpace is not one of the defined values. |
| ArgumentException | buffer is empty. |