BitmapDataExtensionsClip(IReadWriteBitmapData, Rectangle) Method
Clips the specified
source using the specified
clippingRegion.
Unlike the
Clone methods, this one returns a wrapper,
providing access only to the specified region of the original
source.
This overload does not dispose
source when the result is disposed.
See the
Remarks section of the
Clip(IReadWriteBitmapData, Rectangle, Boolean) overload for details.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
public static IReadWriteBitmapData Clip(
this IReadWriteBitmapData source,
Rectangle clippingRegion
)
<ExtensionAttribute>
Public Shared Function Clip (
source As IReadWriteBitmapData,
clippingRegion As Rectangle
) As IReadWriteBitmapData
public:
[ExtensionAttribute]
static IReadWriteBitmapData^ Clip(
IReadWriteBitmapData^ source,
Rectangle clippingRegion
)
[<ExtensionAttribute>]
static member Clip :
source : IReadWriteBitmapData *
clippingRegion : Rectangle -> IReadWriteBitmapData
- source IReadWriteBitmapData
- The source bitmap data to be clipped.
- clippingRegion Rectangle
- A Rectangle that specifies a region within the source.
IReadWriteBitmapDataAn
IReadWriteBitmapData that provides access only to the specified region withing the
source.In Visual Basic and C#, you can call this method as an instance method on any object of type
IReadWriteBitmapData. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).