×

CropFilter Constructor (Rect)

Creates and initializes a new CropFilter with a specified crop area.

Namespace: Nokia.Graphics.ImagingAssembly: Nokia.Graphics.Imaging (in Nokia.Graphics.Imaging.dll) Version: 255.255.255.255

Syntax

C#
public CropFilter(
	Rect cropArea
)
Visual Basic
Public Sub New ( 
	cropArea As Rect
)
Visual C++
public:
CropFilter(
	[InAttribute] Rect cropArea
)
Parameters
cropArea
Type: Windows.Foundation..::..Rect The crop area.

The coordinates are relative to the current coordinate system, which may be affected by preceding filters. The crop area can only be within the image area, otherwise ArgumentException will be thrown when applying the filter.

The crop area has to be within the image area, range x: [0, min(16383, image width)] y: [0, min(16383, image height)].

If the crop area has a width or height of 0, this filter will not be applied.


Last updated 19 June 2014

Back to top

×