public static IReadWriteBitmapData CreateBitmapData<T>(
ArraySection<T> buffer,
Size size,
int stride,
CustomBitmapDataConfig customBitmapDataConfig
)
where T : struct, new()
Public Shared Function CreateBitmapData(Of T As {Structure, New}) (
buffer As ArraySection(Of T),
size As Size,
stride As Integer,
customBitmapDataConfig As CustomBitmapDataConfig
) As IReadWriteBitmapData
public:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
ArraySection<T> buffer,
Size size,
int stride,
CustomBitmapDataConfig^ customBitmapDataConfig
)
static member CreateBitmapData :
buffer : ArraySection<'T> *
size : Size *
stride : int *
customBitmapDataConfig : CustomBitmapDataConfig -> IReadWriteBitmapData when 'T : struct, new()
ArgumentNullException | buffer is Null -or- customBitmapDataConfig is . |
ArgumentOutOfRangeException | size has a zero or negative width or height
-or- stride is too small for the specified width and PixelFormat. -or- WorkingColorSpace in customBitmapDataConfig is not one of the defined values. |
ArgumentException | buffer is too small for the specified size, PixelFormat and stride -or- stride is not a multiple of the size of T -or- PixelFormat in customBitmapDataConfig is indexed or its BitsPerPixel is 0. -or- None of the pixel getter/setter delegates are specified in customBitmapDataConfig. |