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