ImageExtensionsSubImage Method (Image, Area2D)

CVB.Net Documentation
Extract the content of an aoi (area of interest) into a new image using linear interpolation.

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

public static Image SubImage(
	this Image img,
	Area2D aoi
)

Parameters

img
Type: Stemmer.CvbImage
Image to work from.
aoi
Type: Stemmer.CvbArea2D
Area of interest to be extracted.

Return Value

Type: Image
New image of the subregion.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Image. 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).
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed
See Also

Reference