public interface Uint8ClampedArray extends Uint8Array
ArrayBuffer
as 8-bit unsigned integers. Storing
out-of-range values are mapped to valid values by clamping to the range 0-255.
"http://www.khronos.org/registry/typedarray/specs/latest/#7"BYTES_PER_ELEMENT
Modifier and Type | Method and Description |
---|---|
Uint8ClampedArray |
subarray(int begin)
Create a new view from the same array, from
offset to the end of
this view. |
Uint8ClampedArray |
subarray(int begin,
int end)
Create a new view from the same array, from
offset to (but not
including) end in this view. |
get, length, set, set, set, set, set, set, set
buffer, byteLength, byteOffset
Uint8ClampedArray subarray(int begin)
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.subarray
in interface Uint8Array
begin
- offset into this view if non-negative; if negative, an index
from the end of this viewUint8ClampedArray
instanceUint8ClampedArray subarray(int begin, int end)
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.subarray
in interface Uint8Array
begin
- offset into this view if non-negative; if negative, an index from
the end of this viewend
- offset into this view if non-negative; if negative, an index from
the end of this viewUint8ClampedArray
instanceCopyright © 2016. All rights reserved.