DSRect
Interface DSRect is used to define a rectangular region.
Definition
Assembly: dynamsoft-capture-vision-react-native
interface DSRect
Properties
| Property | Type | Description |
|---|---|---|
left |
number | The left edge of the rectangle, set in pixels or as a percentage of the width of the frame. |
top |
number | The top edge of the rectangle, set in pixels or as a percentage of the length of the frame. |
right |
number | The right edge of the rectangle, set in pixels or as a percentage of the width of the frame. |
bottom |
number | The bottom edge of the rectangle, set in pixels or as a percentage of the length of the frame. |
measuredInPercentage |
number | Determines whether the rectangle’s dimensions are measured as a percentage of the total image/frame dimensions or not. |
left
The left edge of the rectangle, set in pixels or as a percentage of the width of the frame.
left: number;
top
The top edge of the rectangle, set in pixels or as a percentage of the length of the frame.
top: number;
right
The right edge of the rectangle, set in pixels or as a percentage of the width of the frame.
right: number;
bottom
The bottom edge of the rectangle, set in pixels or as a percentage of the length of the frame.
bottom: number;
measuredInPercentage
Determines whether the rectangle’s dimensions are measured as a percentage of the total image/frame dimensions or not.
measuredInPercentage: number | boolean;