RelativeRectangle

RelativeRectangle

Přehled

RelativeRectangle je třída v Aspose.3D FOSS pro Python.

Relativní obdélník

The formula between relative component to absolute value is:

Scale * (Reference Width) + offset

So if we want it to represent an absolute value, leave all scale fields zero, and use offset fields instead.

Tato třída deklaruje 2 metody pro objekty RelativeRectangle v programech Python. Dostupné metody zahrnují: __init__, to_absolute. Všichni veřejní členové jsou přístupní jakékoli aplikaci Python po instalaci balíčku Aspose.3D FOSS pro Python. Vlastnosti: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width a 2 další.

Vlastnosti

Název:Typ:PřístupPopis:
scale_xfloatČtení/zápisZíská nebo nastaví měřítko x.
scale_yfloatČtení/zápisZíská nebo nastaví měřítko y.
scale_widthfloatČtení/zápisZíská nebo nastaví šířku měřítka.
scale_heightfloatČtení/zápisZíská nebo nastaví výšku měřítka.
offset_xintČtení/zápisZíská nebo nastaví offset x.
offset_yintČtení/zápisZíská nebo nastaví offset y.
offset_widthintČtení/zápisZíská nebo nastaví šířku offsetu.
offset_heightintČtení/zápisZíská nebo nastaví výšku offsetu.

Metody

Podpis:Popis:
__init__(left: int, top: int, width: int, height: int)Calls init(left, top, width, height) na této instanci RelativeRectangle.
to_absolute(left: int, top: int, width: int, height: int) → 'Rect'Převést na absolutní obdélník pomocí zadaných referenčních hodnot.

Viz také:

 Čeština