|
GWT 2.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.canvas.dom.client.CanvasPixelArray
public class CanvasPixelArray
Array-like object holding the actual image data for an ImageData object. For each pixel, this object contains a red, green, blue and alpha value between 0 and 255 (in this order). Note that we use ints here to represent the data to avoid complexities stemming from bytes being signed in Java.
Experimental API: This API is still under development and is subject to change.
Constructor Summary | |
---|---|
protected |
CanvasPixelArray()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CanvasPixelArray()
Method Detail |
---|
public final int get(int i)
i
- the data index
public 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)
|
GWT 2.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |