public final class Resolution extends Object implements com.aspose.ms.System.Runtime.Serialization.ISerializable
The resolution infomation of the barcode image
Constructor and Description |
---|
Resolution(float dpix,
float dpiy,
int mode)
Initializes a new instance of the Resolution class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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
|
void |
getObjectData(com.aspose.ms.System.Runtime.Serialization.SerializationInfo info,
com.aspose.ms.System.Runtime.Serialization.StreamingContext context)
Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
|
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
|
String |
toString()
Returns a String that represents the current ResolutionResolution instance.
|
public Resolution(float dpix, float dpiy, int mode)
Initializes a new instance of the Resolution class.
dpix
- The horizontal resolution.dpiy
- The vertical resolution.mode
- The ResolutionModeResolutionMode.public float getDpiX()
Gets the horizontal resolution
com.aspose.ms.System.ArgumentException
- The DpiX parameter value is less than 0.
public void setDpiX(float value)
Sets the horizontal resolution
com.aspose.ms.System.ArgumentException
- The DpiX parameter value is less than 0.
public float getDpiY()
Gets the vertical resolution
com.aspose.ms.System.ArgumentException
- The DpiY parameter value is less than 0.
public void setDpiY(float value)
Sets the vertical resolution
com.aspose.ms.System.ArgumentException
- The DpiY parameter value is less than 0.
public int getMode()
Gets the ResolutionModemode of the resolution
public void setMode(int value)
Sets the ResolutionModemode of the resolution
public String toString()
Returns a String that represents the current ResolutionResolution instance.
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 rightpublic 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 rightpublic boolean equals(Object obj)
Determines whether two ResolutionResolution instances are equal.
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.
public void getObjectData(com.aspose.ms.System.Runtime.Serialization.SerializationInfo info, com.aspose.ms.System.Runtime.Serialization.StreamingContext context)
Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
getObjectData
in interface com.aspose.ms.System.Runtime.Serialization.ISerializable
info
- The T:System.Runtime.Serialization.SerializationInfo to populate with data.context
- The destination (see T:System.Runtime.Serialization.StreamingContext) for this serialization.T:System.Security.SecurityException
- The caller does not have the required permission.Copyright (c) 2002-2015 Aspose Pty Ltd. All Rights Reserved.