com.aspose.barcode
Class Resolution

java.lang.Object
  extended by com.aspose.barcode.Resolution

public final class Resolution
extends Object

The resolution infomation of the barcode image


Constructor Summary
Resolution(float dpix, float dpiy, int mode)
           Initialize an instance of ResolutionResolution.
 
Method Summary
 boolean equals(Object obj)
           Determines whether two ResolutionResolution instances are equal.
 float getDpiX()
           Gets or sets the horizontal resolution
 float getDpiY()
           Gets or sets the vertical resolution
 int getMode()
           Gets or sets 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)
           
 void setDpiY(float value)
           
 void setMode(int value)
           
 String toString()
           Returns a String that represents the current ResolutionResolution instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resolution

public Resolution(float dpix,
                  float dpiy,
                  int mode)

Initialize an instance of ResolutionResolution.

Parameters:
dpix - The horizontal resolution.
dpiy - The vertical resolution.
mode - The ResolutionModeResolutionMode.
Method Detail

getDpiX

public float getDpiX()

Gets or sets the horizontal resolution

Throws:
com.aspose.ms.System.IllegalArgumentException - <p>The <b>DpiX</b> parameter value is less than 0.</p>

setDpiX

public void setDpiX(float value)

getDpiY

public float getDpiY()

Gets or sets the vertical resolution

Throws:
com.aspose.ms.System.IllegalArgumentException - <p>The <b>DpiY</b> parameter value is less than 0.</p>

setDpiY

public void setDpiY(float value)

getMode

public int getMode()

Gets or sets the ResolutionModemode of the resolution


setMode

public void setMode(int value)

toString

public String toString()

Returns a String that represents the current ResolutionResolution instance.

Overrides:
toString in class Object
Returns:
A System.StringString that represents the current Object.

op_Equality

public static boolean op_Equality(Resolution left,
                                  Resolution right)

Determines whether two ResolutionResolution instances are equal.

Parameters:
left - The ResolutionResolution instance on the left
right - The ResolutionResolution instance on the right
Returns:
true if the left ResolutionResolution instances is equal to the right one; otherwise, false.

op_Inequality

public static boolean op_Inequality(Resolution left,
                                    Resolution right)

Determines whether two ResolutionResolution instances are not equal.

Parameters:
left - The ResolutionResolution instance on the left
right - The ResolutionResolution instance on the right
Returns:
false if the left ResolutionResolution instances is equal to the right one; otherwise, true.

equals

public boolean equals(Object obj)

Determines whether two ResolutionResolution instances are equal.

Overrides:
equals in class Object
Parameters:
obj - The ResolutionResolution instance on the left
Returns:
true if the left ResolutionResolution instances is equal to the right one; otherwise, false.

hashCode

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.

Overrides:
hashCode in class Object
Returns:
A hash code for the current Object.


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.