You are here: Start » FIL.NET » Invoke.CropImageToRectangle

Invoke.CropImageToRectangle

Creates an image from a rectangular fragment of another image (with black margins if requested).

Namespace:Fil
Assembly:FilNet.dll

Syntax

C++
C#
 
public static void CropImageToRectangle
(
	Fil.Image inImage,
	Fil.Rectangle2D inRectangle,
	Optional<Fil.CoordinateSystem2D> inRectangleAlignment,
	Fil.CropScaleMode inScaleMode,
	Fil.InterpolationMethod inInterpolationMethod,
	float inMargin,
	Fil.Pixel inBorderColor,
	Fil.Image outImage,
	Optional<Fil.Rectangle2D> outAlignedRectangle,
	Optional<Fil.CoordinateSystem2D> outOutputAlignment
)

Parameters

Name Type Range Default Description
inImageFil.ImageInput image.
inRectangleFil.Rectangle2DRectangle defining a rotated subimage.
inRectangleAlignmentFtl.Optional<Fil.CoordinateSystem2D>Adjusts the rectangle to the position of the inspected object. Default value: ftl::NIL.
inScaleModeFil.CropScaleModeInputScaleInputScale keeps the input scale unchanged, AlignedScale rescales according to the input alignment scale. Default value: InputScale.
inInterpolationMethodFil.InterpolationMethodBilinearDefault value: Bilinear.
inMarginfloat<0.0f, INF>Width of an additional margin for the output image.
inBorderColorFil.PixelColor used for locations outside the rectangle.
outImageFil.ImageOutput image.
outAlignedRectangleFtl.Optional<Fil.Rectangle2D>Input rectangle after transformation (in the image coordinates).
outOutputAlignmentFtl.Optional<Fil.CoordinateSystem2D>Alignment of the output image.

See also