Packages

 

com.aspose.imaging.xmp.types.complex.dimensions

Class Dimensions

  • All Implemented Interfaces:
    IXmpType


    public final class Dimensions
    extends ComplexTypeBase

    Containing dimensions for a drawn object.

    • Constructor Detail

      • Dimensions

        public Dimensions()

        Initializes a new instance of the Dimensions class.

      • Dimensions

        public Dimensions(float width,
                          float height)

        Initializes a new instance of the Dimensions class.

        Parameters:
        width - The width.
        height - The height.
    • Method Detail

      • getWidth

        public float getWidth()

        Gets or sets the width.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - value;Width could not be less than zero Value: The width.
      • setWidth

        public void setWidth(float value)

        Gets or sets the width.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - value;Width could not be less than zero Value: The width.
      • getHeight

        public float getHeight()

        Gets or sets the height.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - value;Height could not be less than zero Value: The height.
      • setHeight

        public void setHeight(float value)

        Gets or sets the height.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - value;Height could not be less than zero Value: The height.
      • getUnits

        public String getUnits()

        Gets or sets units.

        For example: inch, mm, pixel, pica, point etc. Value: The units.
      • setUnits

        public void setUnits(String value)

        Gets or sets units.

        For example: inch, mm, pixel, pica, point etc. Value: The units.