public static IReadWriteBitmapData CreateBitmapData<T>(
Array2D<T> buffer,
int pixelWidth,
CustomBitmapDataConfig customBitmapDataConfig
)
where T : struct, new()
Public Shared Function CreateBitmapData(Of T As {Structure, New}) (
buffer As Array2D(Of T),
pixelWidth As Integer,
customBitmapDataConfig As CustomBitmapDataConfig
) As IReadWriteBitmapData
public:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
Array2D<T> buffer,
int pixelWidth,
CustomBitmapDataConfig^ customBitmapDataConfig
)
static member CreateBitmapData :
buffer : Array2D<'T> *
pixelWidth : int *
customBitmapDataConfig : CustomBitmapDataConfig -> IReadWriteBitmapData when 'T : struct, new()
ArgumentNullException | The IsNull property of buffer is .
-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. |