CropArea Class

Definition

A JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image.

public class CropArea
type CropArea = class
Public Class CropArea
Inheritance
CropArea

Constructors

CropArea()

Initializes a new instance of the CropArea class.

CropArea(Double, Double, Double, Double)

Initializes a new instance of the CropArea class.

Properties

Bottom

Gets or sets the bottom coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

Left

Gets or sets the left coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

Right

Gets or sets the right coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

Top

Gets or sets the top coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

Methods

Validate()

Validate the object.

Applies to