Resource Base
Table of contents
Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.

DSRect

The DSRect interface represents a rectangle, similar to CRect in C++, with an added feature for measurement in percentages.

If measured in percentage, the value range for left/right/top/bottom is 0~100.

interface DSRect {
    left: number;
    right: number;
    top: number;
    bottom: number;
    isMeasuredInPercentage: boolean;
}

left

The left coordinate of the rectangle.

The right coordinate of the rectangle.

top

The top coordinate of the rectangle.

bottom

The bottom coordinate of the rectangle.

isMeasuredInPercentage

Indicates if the rectangle’s measurements are in percentages.

Is this page helpful?

YesYes NoNo

In this article:

Version 2.2.10

    • version 2.2.10
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
    Change +