com.aspose.html.drawing

Class Size

  • java.lang.Object
    • com.aspose.html.drawing.Size
  • All Implemented Interfaces:
    java.lang.Cloneable


    public class Size
    extends java.lang.Object
    implements java.lang.Cloneable

    Stores a values which specify a Height and Width.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Size()
      Initializes a new instance of the Size class.
      Size(int width, int height)
      Initializes a new instance of the Size class and specify a Height and Width in pixels.
      Size(Length width, Length height)
      Initializes a new instance of the Size class.
    • Constructor Detail

      • Size

        public Size()

        Initializes a new instance of the Size class.

      • Size

        public Size(int width,
                    int height)

        Initializes a new instance of the Size class and specify a Height and Width in pixels.

        Parameters:
        width - The width.
        height - The height.
      • Size

        public Size(Length width,
                    Length height)

        Initializes a new instance of the Size class.

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

      • getHeight

        public Length getHeight()

        Gets or sets the vertical component of this Size.

        Value: The vertical component of this Size.
      • setHeight

        public void setHeight(Length value)

        Gets or sets the vertical component of this Size.

        Value: The vertical component of this Size.
      • getWidth

        public Length getWidth()

        Gets or sets the horizontal component of this Size.

        Value: The horizontal component of this Size.
      • setWidth

        public void setWidth(Length value)

        Gets or sets the horizontal component of this Size.

        Value: The horizontal component of this Size.
      • deepClone

        public Size deepClone()
      • memberwiseClone

        protected java.lang.Object memberwiseClone()