Interface Uint8ClampedArray

    • Method Detail

      • subarray

        Uint8ClampedArray subarray​(int begin)
        Create a new view from the same array, from offset to the end of this view. These offset is clamped to legal indices into this view, so it is not an error to specify an invalid index.
        Specified by:
        subarray in interface Uint8Array
        Parameters:
        begin - offset into this view if non-negative; if negative, an index from the end of this view
        Returns:
        a new Uint8ClampedArray instance
      • subarray

        Uint8ClampedArray subarray​(int begin,
                                   int end)
        Create a new view from the same array, from offset to (but not including) end in this view. These indices are clamped to legal indices into this view, so it is not an error to specify invalid indices.
        Specified by:
        subarray in interface Uint8Array
        Parameters:
        begin - offset into this view if non-negative; if negative, an index from the end of this view
        end - offset into this view if non-negative; if negative, an index from the end of this view
        Returns:
        a new Uint8ClampedArray instance