public static IReadWriteBitmapData CreateBitmapData<T>(
ArraySection<T> buffer,
Size size,
int stride,
CustomIndexedBitmapDataConfig 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 CustomIndexedBitmapDataConfig
) As IReadWriteBitmapData
public:
generic<typename T>
where T : value class, gcnew()
static IReadWriteBitmapData^ CreateBitmapData(
ArraySection<T> buffer,
Size size,
int stride,
CustomIndexedBitmapDataConfig^ customBitmapDataConfig
)
static member CreateBitmapData :
buffer : ArraySection<'T> *
size : Size *
stride : int *
customBitmapDataConfig : CustomIndexedBitmapDataConfig -> 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. |
ArgumentException | buffer is too small for the specified size, PixelFormat and stride -or- stride is not a multiple of the size of T -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. |