public static IReadWriteBitmapData Clip(
this IReadWriteBitmapData source,
Rectangle clippingRegion,
bool disposeSource
)<ExtensionAttribute>
Public Shared Function Clip (
source As IReadWriteBitmapData,
clippingRegion As Rectangle,
disposeSource As Boolean
) As IReadWriteBitmapDatapublic:
[ExtensionAttribute]
static IReadWriteBitmapData^ Clip(
IReadWriteBitmapData^ source,
Rectangle clippingRegion,
bool disposeSource
)[<ExtensionAttribute>]
static member Clip :
source : IReadWriteBitmapData *
clippingRegion : Rectangle *
disposeSource : bool -> IReadWriteBitmapData The RowSize property of the returned instance can be 0, indicating that the ReadRaw/WriteRaw method cannot be used. It can occur if the left edge of the clipping is not zero.
Even if RowSize property of the returned instance is a nonzero value it can happen that it is too low to access all columns by the ReadRaw/WriteRaw methods. It can occur with indexed PixelFormats if the right edge of the clipping is not on byte boundary.
| ArgumentNullException | source is . |
| ArgumentOutOfRangeException | clippingRegion has no overlapping region with source bounds. |