You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms » FIL.CropImageToQuadrangle

FIL.CropImageToQuadrangle

Creates an image from a quadrangle on another image.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void CropImageToQuadrangle
(
	FilNet.Image inImage,
	FilNet.Path inQuadrangle,
	FilNet.CoordinateSystem2D? inQuadrangleAlignment,
	FilNet.Size? inOutputSize,
	FilNet.InterpolationMethod inInterpolationMethod,
	int inMargin,
	FilNet.Pixel inBorderColor,
	FilNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageFilNet.ImageInput image.
inQuadrangleFilNet.PathRectangle defining a rotated subimage.
inQuadrangleAlignmentFilNet.CoordinateSystem2D?Adjusts the rectangle to the position of the inspected object. Default value: ftl::NIL.
inOutputSizeFilNet.Size?Dimensions of the output image. Default value: ftl::NIL.
inInterpolationMethodFilNet.InterpolationMethodBilinearDefault value: Bilinear.
inMarginint<0, 65535>Width of an additional margin for the output image.
inBorderColorFilNet.PixelColor used for locations outside the quadrangle.
outImageFilNet.ImageOutput image.

Errors

List of possible exceptions:

Error type Description
DomainError Quadrangle should be specified by a closed path with exactly 4 points in CropImageToQuadrangle.

Function Overrides

See also