Class VideoUtils.Size

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height
      The height, in pixels.
      int width
      The width, in pixels.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(int width, int height)
      Checks to see if the Size object matches the specified height and width.
      boolean equals​(java.lang.Object obj)
      Checks to see if this Size object has the same dimensions as the Size object passed in.
      void set​(int width, int height)
      Changes the dimensions of the Size object.
      void set​(VideoUtils.Size size)
      Changes the dimensions of the Size object to match the dimensions of an existing Size object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Size

        public Size()
      • Size

        public Size​(VideoUtils.Size size)
        Constructs a new Size object, based on the dimensions of an existing Size object.
        Parameters:
        size - The Size object to be duplicated.
    • Method Detail

      • set

        public final void set​(int width,
                              int height)
        Changes the dimensions of the Size object.
        Parameters:
        width - The width, in pixels.
        height - The hieght, in pixels.
      • set

        public final void set​(VideoUtils.Size size)
        Changes the dimensions of the Size object to match the dimensions of an existing Size object.
        Parameters:
        size - The Size object to match the dimensions to.
      • equals

        public final boolean equals​(int width,
                                    int height)
        Checks to see if the Size object matches the specified height and width.
        Parameters:
        width - The width, in pixels.
        height - The hieght, in pixels.
      • equals

        public final boolean equals​(java.lang.Object obj)
        Checks to see if this Size object has the same dimensions as the Size object passed in.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - An object to test for equality.