Package de.jcm.discordgamesdk.image
Class ImageDimensions
java.lang.Object
de.jcm.discordgamesdk.image.ImageDimensions
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 Summary
-
Method Summary
-
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
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.
-