RelativeRectangle

RelativeRectangle

Visión general

RelativeRectangle es una clase en Aspose.3D FOSS para Python.

Rectángulo relativo

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.

Esta clase declara 2 métodos para objetos RelativeRectangle en programas Python. Los métodos disponibles incluyen: __init__, to_absolute. Todos los miembros públicos son accesibles a cualquier aplicación Python después de instalar el paquete Aspose.3D FOSS para Python. Propiedades: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width, y 2 más.

Propiedades

NombreTipoAccesoDescripción
scale_xfloatLectura/EscrituraObtiene o establece la escala x.
scale_yfloatLectura/EscrituraObtiene o establece la escala y.
scale_widthfloatLectura/EscrituraObtiene o establece el ancho de escala.
scale_heightfloatLectura/EscrituraObtiene o establece la altura de escala.
offset_xintLectura/EscrituraObtiene o establece el desplazamiento x.
offset_yintLectura/EscrituraObtiene o establece el desplazamiento y.
offset_widthintLectura/EscrituraObtiene o establece el ancho del desplazamiento.
offset_heightintLectura/EscrituraObtiene o establece la altura del desplazamiento.

Métodos

FirmaDescripción
__init__(left: int, top: int, width: int, height: int)Calls init(izquierda, arriba, ancho, alto) en esta instancia de RelativeRectangle.
to_absolute(left: int, top: int, width: int, height: int) → 'Rect'Convertir a rectángulo absoluto usando los valores de referencia dados

Ver también

 Español