ReframingEffect Constructor (Rect, Double)

Creates and initializes a new ReframingEffect with a default pivot point and specified reframing area and angle of rotation.

Namespace: Lumia.Imaging.Transforms
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Lumia.Imaging.Transforms.ReframingEffect = function(reframingArea, angle);

Parameters

reframingArea
Type: Windows.Foundation.Rect
The position and size of the reframing area. If the reframing area has a width or height of 0, this effect will not be applied.

When reframing without rotation, width and height must be in the range [0, 16383].

When reframing with rotation, width and height must be in the range [0, X], where X is in the range [5792, 16383] depending on the reframing area and the source image size. An exception will be thrown during rendering if this limit is exceeded.

The ReframingEffect supports reframing to areas larger than the source or outside of source's bounds. Areas outside the original image are rendered as transparent black pixels, ARGB(0, 0, 0, 0).

angle
Type: System.Double
Rotation of the reframing area clockwise around the pivot point in degrees.

Lumia Imaging SDK

Supported in: 3.0
Show: