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