public static IReadWriteBitmapData CreateBitmapData<T>(
T[,] buffer,
int pixelWidth,
CustomIndexedBitmapDataConfig customBitmapDataConfig
)
where T : struct, new()
Public Shared Function CreateBitmapData(Of T As {Structure, New}) (
buffer As T(,),
pixelWidth As Integer,
customBitmapDataConfig As CustomIndexedBitmapDataConfig
) As IReadWriteBitmapData
public:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
array<T,2>^ buffer,
int pixelWidth,
CustomIndexedBitmapDataConfig^ customBitmapDataConfig
)
static member CreateBitmapData :
buffer : 'T[,] *
pixelWidth : int *
customBitmapDataConfig : CustomIndexedBitmapDataConfig -> IReadWriteBitmapData when 'T : struct, new()
ArgumentNullException | buffer or customBitmapDataConfig is . |
ArgumentOutOfRangeException | pixelWidth is too large for the specified buffer and PixelFormat. |
ArgumentException | buffer is empty
-or- Palette in customBitmapDataConfig is too large for the specified PixelFormat -or- PixelFormat in customBitmapDataConfig is not indexed or its BitsPerPixel is not between 1 and 16. -or- Neither the getter nor the setter delegate is specified in customBitmapDataConfig. |