public static IReadWriteBitmapData CreateBitmapData<T>(
T[,] buffer,
int pixelWidth,
CustomBitmapDataConfig customBitmapDataConfig
)
where T : struct, new()
Public Shared Function CreateBitmapData(Of T As {Structure, New}) (
buffer As T(,),
pixelWidth As Integer,
customBitmapDataConfig As CustomBitmapDataConfig
) As IReadWriteBitmapData
public:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
array<T,2>^ buffer,
int pixelWidth,
CustomBitmapDataConfig^ customBitmapDataConfig
)
static member CreateBitmapData :
buffer : 'T[,] *
pixelWidth : int *
customBitmapDataConfig : CustomBitmapDataConfig -> IReadWriteBitmapData when 'T : struct, new()
ArgumentNullException | buffer or customBitmapDataConfig is . |
ArgumentOutOfRangeException | pixelWidth is too large for the specified buffer and PixelFormat.
-or- WorkingColorSpace in customBitmapDataConfig is not one of the defined values. |
ArgumentException | buffer is empty
-or- PixelFormat in customBitmapDataConfig is indexed or its BitsPerPixel is 0. -or- None of the pixel getter/setter delegates are specified in customBitmapDataConfig. |