ImageSubImage Method (Rect)

CVB.Net Documentation
Creates a new Image that is a copy from the given sourceRect of the image data of the current instance.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public Image SubImage(
	Rect sourceRect
)

Parameters

sourceRect
Type: Stemmer.CvbRect
Rectangle that identifies the region to copy.

Return Value

Type: Image
A new Image object that is a deep copy of this image data.
Exceptions

ExceptionCondition
InsufficientMemoryExceptionThe new image buffer could not be created.
CvbExceptionIf image format could not be cloned.
ObjectDisposedExceptionIf this image has already been disposed
Remarks

This method performs a deep copy of the image data the current instance currently points to.

This means that if you clone a driver image, you receive a new plain Image without any driver interfaces!

See Also

Reference