public static IReadableBitmapData Clip(
this IReadableBitmapData source,
Rectangle clippingRegion,
bool disposeSource
)
<ExtensionAttribute>
Public Shared Function Clip (
source As IReadableBitmapData,
clippingRegion As Rectangle,
disposeSource As Boolean
) As IReadableBitmapData
public:
[ExtensionAttribute]
static IReadableBitmapData^ Clip(
IReadableBitmapData^ source,
Rectangle clippingRegion,
bool disposeSource
)
[<ExtensionAttribute>]
static member Clip :
source : IReadableBitmapData *
clippingRegion : Rectangle *
disposeSource : bool -> IReadableBitmapData
The RowSize property of the returned instance can be 0, indicating that the ReadRaw 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 method. 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. |