com.aspose.barcode

Class Resolution

  • java.lang.Object
    • com.aspose.barcode.Resolution


  • public final class Resolution
    extends java.lang.Object

    The resolution infomation of the barcode image

    • Constructor Summary

      Constructors 
      Constructor and Description
      Resolution()
      Initializes a new instance of the Resolution class.
      Resolution(float dpix, float dpiy, int mode)
      Deprecated. 
      Resolution(float dpix, float dpiy, ResolutionMode mode)
      Initializes a new instance of the Resolution class.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      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
      ResolutionMode 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)
      Deprecated. 
      void setMode(ResolutionMode value)
      Sets the ResolutionModemode of the resolution
      java.lang.String toString()
      Returns a string that represents the current ResolutionResolution instance.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Resolution

        public Resolution()

        Initializes a new instance of the Resolution class.

      • Resolution

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

        Initializes a new instance of the Resolution class.

        Parameters:
        dpix - The horizontal resolution.
        dpiy - The vertical resolution.
        mode - The ResolutionModeResolutionMode.
      • Resolution

        @Deprecated
        public Resolution(float dpix,
                                       float dpiy,
                                       int mode)
        Deprecated. 

        Initializes a new instance of the Resolution class.

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

      • getDpiX

        public float getDpiX()

        Gets the horizontal resolution

        Throws:
        java.lang.IllegalArgumentException - The DpiX parameter value is less than than 0.
      • setDpiX

        public void setDpiX(float value)

        Sets the horizontal resolution

        Throws:
        java.lang.IllegalArgumentException - The DpiX parameter value is less than than 0.
      • getDpiY

        public float getDpiY()

        Gets the vertical resolution

        Throws:
        java.lang.IllegalArgumentException -

        The DpiY parameter value is less than than 0.

      • setDpiY

        public void setDpiY(float value)

        Sets the vertical resolution

        Throws:
        java.lang.IllegalArgumentException -

        The DpiY parameter value is less than than 0.

      • getMode

        public ResolutionMode getMode()

        Gets the ResolutionModemode of the resolution

      • setMode

        public void setMode(ResolutionMode value)

        Sets the ResolutionModemode of the resolution

      • setMode

        @Deprecated
        public void setMode(int value)
        Deprecated. 

        Sets the ResolutionModemode of the resolution

      • toString

        public java.lang.String toString()

        Returns a string that represents the current ResolutionResolution instance.

        Overrides:
        toString in class java.lang.Object
        Returns:
        The stringS 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(java.lang.Object obj)

        Determines whether two ResolutionResolution instances are equal.

        Overrides:
        equals in class java.lang.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 java.lang.Object
        Returns:
        A hash code for the current Object.