[SecurityCriticalAttribute]
public static IReadWriteBitmapData CreateBitmapData(
IntPtr buffer,
Size size,
int stride,
CustomBitmapDataConfig customBitmapDataConfig
)
<SecurityCriticalAttribute>
Public Shared Function CreateBitmapData (
buffer As IntPtr,
size As Size,
stride As Integer,
customBitmapDataConfig As CustomBitmapDataConfig
) As IReadWriteBitmapData
public:
[SecurityCriticalAttribute]
static IReadWriteBitmapData^ CreateBitmapData(
IntPtr buffer,
Size size,
int stride,
CustomBitmapDataConfig^ customBitmapDataConfig
)
[<SecurityCriticalAttribute>]
static member CreateBitmapData :
buffer : IntPtr *
size : Size *
stride : int *
customBitmapDataConfig : CustomBitmapDataConfig -> 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. -or- WorkingColorSpace in customBitmapDataConfig is not one of the defined values. |
ArgumentException | PixelFormat in customBitmapDataConfig is indexed or its BitsPerPixel is 0.
-or- None of the pixel getter/setter delegates are specified in customBitmapDataConfig. |