public final class Resolution
extends java.lang.Object
The resolution infomation of the barcode image
Constructor and Description |
---|
Resolution(float dpix,
float dpiy,
int mode)
Initialize an instance of
ResolutionResolution . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether two
ResolutionResolution instances are equal. |
float |
getDpiX()
Gets the horizontal resolution
|
float |
getDpiY()
Gets the vertical resolution
|
int |
getMode()
Gets the
ResolutionModemode of the resolution
|
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
op_Equality(Resolution left,
Resolution right)
Determines whether two
ResolutionResolution instances are equal. |
static boolean |
op_Inequality(Resolution left,
Resolution right)
Determines whether two
ResolutionResolution instances are not equal. |
void |
setDpiX(float value)
Sets the horizontal resolution
|
void |
setDpiY(float value)
Sets the vertical resolution
|
void |
setMode(int value)
Sets the
ResolutionModemode of the resolution
|
java.lang.String |
toString()
Returns a String that represents the current
ResolutionResolution instance. |
public Resolution(float dpix, float dpiy, int mode)
Initialize an instance of ResolutionResolution
.
dpix
- The horizontal resolution.dpiy
- The vertical resolution.mode
- The ResolutionModeResolutionMode
.public boolean equals(java.lang.Object obj)
Determines whether two ResolutionResolution
instances are equal.
equals
in class java.lang.Object
obj
- The ResolutionResolution
instance on the left<b>true</b>
if the left ResolutionResolution
instances is equal to the right one; otherwise, <b>false</b>
.public float getDpiX()
Gets the horizontal resolution
ArgumentException
- <p>The <b>DpiX</b> parameter value is less than 0.</p>
public float getDpiY()
Gets the vertical resolution
ArgumentException
- <p>The <b>DpiY</b> parameter value is less than 0.</p>
public int getMode()
Gets the ResolutionModemode
of the resolution
public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
hashCode
in class java.lang.Object
public static boolean op_Equality(Resolution left, Resolution right)
Determines whether two ResolutionResolution
instances are equal.
left
- The ResolutionResolution
instance on the leftright
- The ResolutionResolution
instance on the right<b>true</b>
if the left ResolutionResolution
instances is equal to the right one; otherwise, <b>false</b>
.public static boolean op_Inequality(Resolution left, Resolution right)
Determines whether two ResolutionResolution
instances are not equal.
left
- The ResolutionResolution
instance on the leftright
- The ResolutionResolution
instance on the right<b>false</b>
if the left ResolutionResolution
instances is equal to the right one; otherwise, <b>true</b>
.public void setDpiX(float value)
Sets the horizontal resolution
ArgumentException
- <p>The <b>DpiX</b> parameter value is less than 0.</p>
public void setDpiY(float value)
Sets the vertical resolution
ArgumentException
- <p>The <b>DpiY</b> parameter value is less than 0.</p>
public void setMode(int value)
Sets the ResolutionModemode
of the resolution
public java.lang.String toString()
Returns a String that represents the current ResolutionResolution
instance.
toString
in class java.lang.Object
System.StringString
that represents the current Object.