You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms » FIL.CropImageToRectangle
Creates an image from a rectangular fragment of another image (with black margins if requested).
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void CropImageToRectangle ( FilNet.Image inImage, FilNet.Rectangle2D inRectangle, FilNet.CoordinateSystem2D? inRectangleAlignment, FilNet.CropScaleMode inScaleMode, FilNet.InterpolationMethod inInterpolationMethod, float inMargin, FilNet.Pixel inBorderColor, FilNet.Image outImage, NullableValue<FilNet.Rectangle2D> outAlignedRectangle, NullableValue<FilNet.CoordinateSystem2D> outOutputAlignment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inRectangle | FilNet.Rectangle2D | Rectangle defining a rotated subimage. | ||
![]() | inRectangleAlignment | FilNet.CoordinateSystem2D? | Adjusts the rectangle to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inScaleMode | FilNet.CropScaleMode | InputScale | InputScale keeps the input scale unchanged, AlignedScale rescales according to the input alignment scale. Default value: InputScale. | |
![]() | inInterpolationMethod | FilNet.InterpolationMethod | Bilinear | Default value: Bilinear. | |
![]() | inMargin | float | <0.0f, INF> | Width of an additional margin for the output image. | |
![]() | inBorderColor | FilNet.Pixel | Color used for locations outside the rectangle. | ||
![]() | outImage | FilNet.Image | Output image. | ||
![]() | outAlignedRectangle | FilNet.NullableValue<FilNet.Rectangle2D> | Input rectangle after transformation (in the image coordinates). Can be null to skip this parameter calculation. | ||
![]() | outOutputAlignment | FilNet.NullableValue<FilNet.CoordinateSystem2D> | Alignment of the output image. Can be null to skip this parameter calculation. |
Examples
![]() |
![]() |
CropImageToRectangle used to extract an image of an object.
Function Overrides
- CropImageToRectangle(Image, Rectangle2D, CropScaleMode, InterpolationMethod, Single, Pixel, Image)
- CropImageToRectangle(Image, Rectangle2D, Nullable<CoordinateSystem2D>, CropScaleMode, InterpolationMethod, Single, Pixel, Image)
- CropImageToRectangle(Image, Rectangle2D, Nullable<CoordinateSystem2D>, CropScaleMode, InterpolationMethod, Single, Pixel, Image, Rectangle2D, CoordinateSystem2D)