You are here: Start » AVL.NET » AVL.CropImageToRegion(AvlNet.Image, AvlNet.Region, AvlNet.Pixel, AvlNet.Image)

AVL.CropImageToRegion(AvlNet.Image, AvlNet.Region, AvlNet.Pixel, AvlNet.Image)

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

inImage
Type: AvlNet.Image
Input image
inRegion
Type: AvlNet.Region
Input region
inOutsidePixel
Type: AvlNet.Pixel
Color used for locations outside the region
outImage
Type: AvlNet.Image
Output 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