public class Size extends Object
SystemCapability.Multimedia#IMAGE| 构造器 | 说明 |
|---|---|
Size() |
A constructor used to create a
Size instance. |
Size(int width,
int height) |
A constructor used to create a
Size instance based on a specified width and height. |
public int height
public int width
public Size()
Size instance.
The width and height of an image are set to 0.
public Size(int width,
int height)
Size instance based on a specified width and height.width - Indicates the image width.height - Indicates the image height.public boolean equals(Object obj)
Size object is the same as the one
passed through the input parameter.
This method overrides the equals method.
public int hashCode()
Size object.hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)