Class Size


  • public class Size
    extends Object
    An Image API size.
    • Constructor Detail

      • Size

        public Size​(int aWidth,
                    int aHeight)
        Creates a new Image API size from the supplied width and height.
        Parameters:
        aWidth - A size width
        aHeight - A size height
      • Size

        public Size()
        Creates a new Image API size.
    • Method Detail

      • setWidth

        public Size setWidth​(int aWidth)
        Sets a new size width.
        Parameters:
        aWidth - A size width
        Returns:
        This size
      • getWidth

        public int getWidth()
        Gets the size width.
        Returns:
        The size width
      • setHeight

        public Size setHeight​(int aHeight)
        Sets the size height.
        Parameters:
        aHeight - A size height
        Returns:
        This size
      • getHeight

        public int getHeight()
        Gets the size height.
        Returns:
        The size height