Package io.anyline2.camera
Class CameraSize
-
- All Implemented Interfaces:
public class CameraSize
Helper class used to abstract the camera size attributes for api1 and api2
-
-
Constructor Summary
Constructors Constructor Description CameraSize(Camera.Size size)
CameraSize(Size size)
CameraSize(int width, int height)
-
Method Summary
-
-
Constructor Detail
-
CameraSize
CameraSize(Camera.Size size)
-
CameraSize
CameraSize(Size size)
-
CameraSize
CameraSize(int width, int height)
-
-
Method Detail
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getLonger
int getLonger()
- Returns:
the longer of the two sides
-
getShorter
int getShorter()
- Returns:
the shorter of the two sides
-
toString
String toString()
Return the size represented as a string with the format
"WxH"
- Returns:
string representation of the size
-
equals
boolean equals(Object obj)
Check if this size is equal to another size.
Two sizes are equal if and only if both their widths and heights are equal.
A size object is never equal to any other type of object.
- Returns:
true
if the objects were equal,false
otherwise
-
hashCode
int hashCode()
-
-
-
-