RelativeRectangle

RelativeRectangle

Przegląd

RelativeRectangle jest klasą w Aspose.3D FOSS dla Python.

Prostokąt względny

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.

Ta klasa deklaruje 2 metody dla obiektów RelativeRectangle w programach Python. Dostępne metody to: __init__, to_absolute. Wszystkie publiczne elementy są dostępne dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.3D FOSS dla Python. Właściwości: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width oraz 2 dodatkowe.

Właściwości

NazwaTypDostępOpis
scale_xfloatOdczyt/zapisPobiera lub ustawia skalę x.
scale_yfloatOdczyt/zapisPobiera lub ustawia skalę y.
scale_widthfloatOdczyt/zapisPobiera lub ustawia szerokość skali.
scale_heightfloatOdczyt/zapisPobiera lub ustawia wysokość skali.
offset_xintOdczyt/zapisPobiera lub ustawia offset x.
offset_yintOdczyt/zapisPobiera lub ustawia offset y.
offset_widthintOdczyt/zapisPobiera lub ustawia szerokość offsetu.
offset_heightintOdczyt/zapisPobiera lub ustawia wysokość offsetu.

Metody

SygnaturaOpis
__init__(left: int, top: int, width: int, height: int)Calls init(lewy, górny, szerokość, wysokość) w tej instancji RelativeRectangle.
to_absolute(left: int, top: int, width: int, height: int) → 'Rect'Konwertuj do prostokąta bezwzględnego przy użyciu podanych wartości odniesienia

Zobacz także

 Polski