You are here: Start » FIL.NET » 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 | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Input image. | ||
![]() | inRectangle | Fil.Rectangle2D | Rectangle defining a rotated subimage. | ||
![]() | inRectangleAlignment | Ftl.Optional<Fil.CoordinateSystem2D> | Adjusts the rectangle to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inScaleMode | Fil.CropScaleMode | InputScale | InputScale keeps the input scale unchanged, AlignedScale rescales according to the input alignment scale. Default value: InputScale. | |
![]() | inInterpolationMethod | Fil.InterpolationMethod | Bilinear | Default value: Bilinear. | |
![]() | inMargin | float | <0.0f, INF> | Width of an additional margin for the output image. | |
![]() | inBorderColor | Fil.Pixel | Color used for locations outside the rectangle. | ||
![]() | outImage | Fil.Image | Output image. | ||
![]() | outAlignedRectangle | Ftl.Optional<Fil.Rectangle2D> | Input rectangle after transformation (in the image coordinates). | ||
![]() | outOutputAlignment | Ftl.Optional<Fil.CoordinateSystem2D> | Alignment of the output image. |