public static IReadWriteBitmapData CreateBitmapData(
int width,
int height,
KnownPixelFormat pixelFormat,
WorkingColorSpace workingColorSpace,
Color32 backColor = default,
byte alphaThreshold = 128
)
Public Shared Function CreateBitmapData (
width As Integer,
height As Integer,
pixelFormat As KnownPixelFormat,
workingColorSpace As WorkingColorSpace,
Optional backColor As Color32 = Nothing,
Optional alphaThreshold As Byte = 128
) As IReadWriteBitmapData
public:
static IReadWriteBitmapData^ CreateBitmapData(
int width,
int height,
KnownPixelFormat pixelFormat,
WorkingColorSpace workingColorSpace,
Color32 backColor = Color32(),
unsigned char alphaThreshold = 128
)
static member CreateBitmapData :
width : int *
height : int *
pixelFormat : KnownPixelFormat *
workingColorSpace : WorkingColorSpace *
?backColor : Color32 *
?alphaThreshold : byte
(* Defaults:
let _backColor = defaultArg backColor new Color32()
let _alphaThreshold = defaultArg alphaThreshold 128
*)
-> IReadWriteBitmapData
ArgumentOutOfRangeException | width or height is zero or negative
-or- pixelFormat is not one of the valid formats. -or- workingColorSpace is not one of the defined values. |