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