Class ImageDimensions

java.lang.Object
de.jcm.discordgamesdk.image.ImageDimensions

public class ImageDimensions extends Object

Structure providing information about the size/dimensions of a Discord image.

This structure is only returned from ImageManager.getDimensions(ImageHandle) and thus has neither a public constructor nor any setter methods.

See Also:
  • Constructor Details

    • ImageDimensions

      public ImageDimensions(int width, int height)
  • Method Details

    • getWidth

      public int getWidth()
      Gets the width (horizontal dimension) of the image.
      Returns:
      The width
    • getHeight

      public int getHeight()
      Gets the height (vertical dimension) of the image.
      Returns:
      The height
    • toString

      public String toString()

      Generates a string representation of the image dimensions containing all its attributes.

      This is just one of IntelliJ IDEA's default toString()-Methods, so don't expect anything special.

      Overrides:
      toString in class Object
      Returns:
      A string representation of the image dimensions