Uint8ClampedArray class

Uint8ClampedArray class

Represents an array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead;

Inheritance: Uint8ClampedArrayTypedArrayDOMObject

The Uint8ClampedArray type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the Uint8ClampedArray class.
initInitializes a new instance of the Uint8ClampedArray class.

Properties

PropertyDescription
byte_lengthGets the byteLength accessor property represents the length of an ArrayBuffer in bytes.
byte_offsetGets the byteOffset from the start of referenced ArrayBuffer.
lengthGets the length of a typed array.
BYTES_PER_ELEMENTThe property represents the size in bytes of each element in an typed array.

Gets or sets the Byte at the specified index.

Indexer

NameDescription
[index]The index.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.

See Also