public class CanvasPixelArray extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
CanvasPixelArray() |
Modifier and Type | Method and Description |
---|---|
int |
get(int i)
Returns the data value at index i.
|
int |
getLength()
Returns the length of the array.
|
void |
set(int i,
int value)
Sets the data value at position i to the given value.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public final int get(int i)
i
- the data indexpublic final int getLength()
public final void set(int i, int value)
i
- index to set.value
- value to set (use values from 0 to 255)Copyright © 2018. All rights reserved.