RelativeRectangle Structure
Relative rectangle 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.

Namespace: Aspose.ThreeD.Utilities
Assembly: Aspose.3D (in Aspose.3D.dll) Version: 20.3.0.0 (20.3)
Syntax
public struct RelativeRectangle

The RelativeRectangle type exposes the following members.

Properties
  NameDescription
Public propertyOffsetHeight
Gets or sets the offset for height
Public propertyOffsetWidth
Gets or sets the offset for width
Public propertyOffsetX
Gets or sets the offset for coordinate X
Public propertyOffsetY
Gets or sets the offset for coordinate Y
Public propertyScaleHeight
Relative height
Public propertyScaleWidth
Relative width
Public propertyScaleX
Relative coordinate X
Public propertyScaleY
Relative coordinate Y
Methods
  NameDescription
Public methodEquals (Inherited from ValueType.)
Public methodStatic memberFromScale
Construct a RelativeRectangle with all offset fields zero and scale fields from given parameters.
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Public methodToAbsolute(Rectangle)
Convert the relative rectangle to absolute rectangle
Public methodToAbsolute(Size)
Convert the relative rectangle to absolute rectangle
Public methodToString
Converts the value of this instance to a String.
(Overrides ValueTypeToString.)
See Also