Package de.xima.fc.common.image
Class ImageSize
- java.lang.Object
-
- de.xima.fc.common.image.ImageSize
-
- All Implemented Interfaces:
Serializable
public final class ImageSize extends Object implements Serializable
Represents the width and height of an image file, i.e. a width and height in pixels.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageSize(int width, int height)
Creates a new image size with the given width and height.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
int
height()
The height of the image, in pixels.int
width()
The width of the image, in pixels.static ImageSize
zero()
Gets an image size for an image without pixels.
-
-
-
Method Detail
-
height
public int height()
The height of the image, in pixels.- Returns:
- The height of the image.
-
width
public int width()
The width of the image, in pixels.- Returns:
- The width of the image.
-
zero
public static ImageSize zero()
Gets an image size for an image without pixels.- Returns:
- An image size a 0x0 image.
-
-