You are here: Start » AVL.NET » AVL.CropImageToRegion Method
AVL.CropImageToRegion Method
Crops an image to the area of the specified region.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void CropImageToRegion( AvlNet.Image inImage, AvlNet.Region inRegion, AvlNet.Pixel inOutsidePixel, out AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRegion | AvlNet.Region | Input region. | |||
inOutsidePixel | AvlNet.Pixel | Color used for locations outside the region. | |||
outImage | AvlNet.Image | Output image. |
Description
The operation extracts part of the inImage that corresponds to the region.
Other pixels are set to inOutsidePixel color.