ImageProcessingOptions interface

Options for image processing. If both region-or-interest and rotation are specified, the crop around the region-of-interest is extracted first, then the specified rotation is applied to the crop.

Signature:

export declare interface ImageProcessingOptions 

Properties

Property Modifiers Type Description
regionOfInterest RectF The optional region-of-interest to crop from the image. If not specified, the full image is used. Coordinates must be in [0,1] with 'left' < 'right' and 'top' < bottom.
rotationDegrees number The rotation to apply to the image (or cropped region-of-interest), in degrees clockwise. The rotation must be a multiple (positive or negative) of 90°.

ImageProcessingOptions.regionOfInterest

The optional region-of-interest to crop from the image. If not specified, the full image is used. Coordinates must be in [0,1] with 'left' < 'right' and 'top' < bottom.

Signature:

regionOfInterest?: RectF;

ImageProcessingOptions.rotationDegrees

The rotation to apply to the image (or cropped region-of-interest), in degrees clockwise. The rotation must be a multiple (positive or negative) of 90°.

Signature:

rotationDegrees?: number;