public static IReadWriteBitmapData CreateBitmapData<T>(
Array2D<T> buffer,
int pixelWidth,
KnownPixelFormat pixelFormat,
WorkingColorSpace workingColorSpace,
Color32 backColor,
byte alphaThreshold,
Action? disposeCallback = null
)
where T : struct, new()
Public Shared Function CreateBitmapData(Of T As {Structure, New}) (
buffer As Array2D(Of T),
pixelWidth As Integer,
pixelFormat As KnownPixelFormat,
workingColorSpace As WorkingColorSpace,
backColor As Color32,
alphaThreshold As Byte,
Optional disposeCallback As Action = Nothing
) As IReadWriteBitmapData
public:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
Array2D<T> buffer,
int pixelWidth,
KnownPixelFormat pixelFormat,
WorkingColorSpace workingColorSpace,
Color32 backColor,
unsigned char alphaThreshold,
Action^ disposeCallback = nullptr
)
static member CreateBitmapData :
buffer : Array2D<'T> *
pixelWidth : int *
pixelFormat : KnownPixelFormat *
workingColorSpace : WorkingColorSpace *
backColor : Color32 *
alphaThreshold : byte *
?disposeCallback : Action
(* Defaults:
let _disposeCallback = defaultArg disposeCallback null
*)
-> IReadWriteBitmapData when 'T : struct, new()
ArgumentNullException | The IsNull property of 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. |