[SecurityCriticalAttribute]
public static IReadWriteBitmapData CreateBitmapData(
IntPtr buffer,
Size size,
int stride,
CustomIndexedBitmapDataConfig customBitmapDataConfig
)
<SecurityCriticalAttribute>
Public Shared Function CreateBitmapData (
buffer As IntPtr,
size As Size,
stride As Integer,
customBitmapDataConfig As CustomIndexedBitmapDataConfig
) As IReadWriteBitmapData
public:
[SecurityCriticalAttribute]
static IReadWriteBitmapData^ CreateBitmapData(
IntPtr buffer,
Size size,
int stride,
CustomIndexedBitmapDataConfig^ customBitmapDataConfig
)
[<SecurityCriticalAttribute>]
static member CreateBitmapData :
buffer : IntPtr *
size : Size *
stride : int *
customBitmapDataConfig : CustomIndexedBitmapDataConfig -> IReadWriteBitmapData
ArgumentNullException | buffer is IntPtr.Zero -or- customBitmapDataConfig is . |
ArgumentOutOfRangeException | size has a zero or negative width or height
-or- The absolute value of stride is too small for the specified width and PixelFormat. |
ArgumentException | 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. |