public static IReadWriteBitmapData CreateBitmapData(
int width,
int height,
KnownPixelFormat pixelFormat,
Palette? palette
)
Public Shared Function CreateBitmapData (
width As Integer,
height As Integer,
pixelFormat As KnownPixelFormat,
palette As Palette
) As IReadWriteBitmapData
public:
static IReadWriteBitmapData^ CreateBitmapData(
int width,
int height,
KnownPixelFormat pixelFormat,
Palette^ palette
)
static member CreateBitmapData :
width : int *
height : int *
pixelFormat : KnownPixelFormat *
palette : Palette -> IReadWriteBitmapData
ArgumentOutOfRangeException | width or height is zero or negative
-or- pixelFormat is not one of the valid formats. |
ArgumentException | palette is too large for the specified pixelFormat. |