You are here: Start » AVL.NET » AVL.CropImageToRegion

AVL.CropImageToRegion

Crops an image to the area of the specified region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CropImageToRegion
(
	AvlNet.Image inImage,
	AvlNet.Region inRegion,
	AvlNet.Pixel inOutsidePixel,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRegionAvlNet.RegionInput region.
inOutsidePixelAvlNet.PixelColor used for locations outside the region.
outImageAvlNet.ImageOutput image.

Description

The operation extracts part of the inImage that corresponds to the region. Other pixels are set to inOutsidePixel color.

Examples

CropImageToRegion performed on the sample image and region.

See also