Resource Base
Table of contents


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;


The left coordinate of the rectangle.

The right coordinate of the rectangle.


The top coordinate of the rectangle.


The bottom coordinate of the rectangle.


Indicates if the rectangle’s measurements are in percentages.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.2.30)
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support