You are here: Start » AVL.NET » AVL.CropImageToRectangle Method
AVL.CropImageToRectangle Method
Creates an image from a rectangular fragment of another image (with black margins if requested).
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void CropImageToRectangle( AvlNet.Image inImage, AvlNet.Rectangle2D inRectangle, AvlNet.InterpolationMethod inInterpolationMethod, float inMargin, out AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | AvlNet.Image | Input image. | ||
![]() | inRectangle | AvlNet.Rectangle2D | Rectangle defining a rotated subimage. | ||
![]() | inInterpolationMethod | AvlNet.InterpolationMethod | Bilinear | Default value: Bilinear. | |
![]() | inMargin | float | <0.0f, INF> | Width of an additional black margin for the output image. | |
![]() | outImage | AvlNet.Image | Output image. |
Examples
![]() |
![]() |
CropImageToRectangle used to extract an image of an object.