Rectangle Class¶
Namespace: id3.Face
Definition¶
Properties¶
Name |
Type |
Description |
|---|---|---|
Bottom-left corner of the rectangle. |
||
Bottom-right corner of the rectangle. |
||
Top-left corner of the rectangle. |
||
Top-right corner of the rectangle. |
Static Methods¶
Name |
Description |
|---|---|
Creates a quadrangle from 4 points. |
|
Creates an aligned rectangle from the top-left point and the width/height. |
|
Creates an aligned rectangle from 2 points (top-left and bottom right) coordinates. |
Methods¶
Name |
Description |
|---|---|
Clip a rectangle to be fully inside an image. |
|
Clones the Rectangle object. |
|
Extends the rectangle by an amount in pixels on each side. Use on aligned rectangle only. |
|
Returns the englobing aligned rectangle around the given quadrangle. |
|
Returns the height of the rectangle. Use on aligned rectangle only. |
|
Returns the width of the rectangle. Use on aligned rectangle only. |
|
Returns the x-coord of the TopLeft corner. Use on aligned rectangle only. |
|
Returns the y-coord of the TopLeft corner. Use on aligned rectangle only. |
|
Return True if the rectangle is aligned, False if it’s a quadrangle. |
|
Applies a scale factor to the rectangle. |