Packages

 

com.aspose.imaging

Interfaces

Classes

com.aspose.imaging

Class IntRange



  • public class IntRange
    extends Object

    Class for representing sequence of elements

    • Constructor Detail

      • IntRange

        public IntRange(int start,
                        int count)

        Initializes a new instance of the IntRange class.

        Parameters:
        start - The start.
        count - The count.
      • IntRange

        public IntRange(int start,
                        int count,
                        int delta)

        Initializes a new instance of the IntRange class.

        Parameters:
        start - The start.
        count - The count.
        delta - The delta.
      • IntRange

        public IntRange(int[] range)

        Initializes a new instance of the IntRange class.

        Parameters:
        range - The range.
    • Method Detail

      • getRange

        public int[] getRange()

        Gets the range.

        Returns:
        The range.
      • setRange

        public void setRange(int[] value)

        Sets the range.

        Parameters:
        value - The range.
      • getArrayOneItemFromIndex

        public int[] getArrayOneItemFromIndex(int index)

        Returns one item array from specified index

        Parameters:
        index - The range index.
        Returns:
        The array of System.Int32
        Throws:
        IndexOutOFRangeException - Index is out of range
      • getRange

        public static int[] getRange(int start,
                                     int count,
                                     int delta)

        Gets the count range of int elements starting at start

        Parameters:
        start - The start.
        count - The count.
        delta - The delta.
        Returns:
        Array of items
        Throws:
        com.aspose.ms.System.ArgumentException - Count can not be lover than 1 or {D255958A-8513-4226-94B9-080D98F904A1}Start page can not be lover than 0