Skip to content
Type

CropRectangle

Specifies the rectangular cropping region.

ts
type CropRectangle = {
	left: number;
	top: number;
	width: number;
	height: number;
};

Used by

Properties

left

ts
left: number;

The distance in pixels from the left edge of the source frame to the left edge of the crop rectangle.

top

ts
top: number;

The distance in pixels from the top edge of the source frame to the top edge of the crop rectangle.

width

ts
width: number;

The width in pixels of the crop rectangle.

height

ts
height: number;

The height in pixels of the crop rectangle.

Released under the Mozilla Public License 2.0.