java.lang.Object | ||
↳ | com.google.gwt.core.client.JavaScriptObject | |
↳ | com.google.gwt.canvas.dom.client.ImageData |
Object that holds image data and a size.
Experimental API: This API is still under development and is subject to change.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the alpha value at position (x,y).
| |||||||||||
Returns the blue value at position (x,y).
| |||||||||||
Returns a canvas pixel array of size width * height * 4.
| |||||||||||
Returns the green value at position (x,y).
| |||||||||||
Returns the height of this image data object.
| |||||||||||
Returns the red value at position (x,y).
| |||||||||||
Returns the width of this image data object.
| |||||||||||
Sets the alpha value at position (x,y).
| |||||||||||
Sets the blue value at position (x,y).
| |||||||||||
Sets the green value at position (x,y).
| |||||||||||
Sets the red value at position (x,y).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Returns the alpha value at position (x,y).
x | the x coordinate |
---|---|
y | the y coordinate |
setAlphaAt(int, int, int)
Returns the blue value at position (x,y).
x | the x coordinate |
---|---|
y | the y coordinate |
setBlueAt(int, int, int)
Returns a canvas pixel array of size width * height * 4.
CanvasPixelArray
object
Returns the green value at position (x,y).
x | the x coordinate |
---|---|
y | the y coordinate |
setGreenAt(int, int, int)
Returns the height of this image data object.
Returns the red value at position (x,y).
x | the x coordinate |
---|---|
y | the y coordinate |
setRedAt(int, int, int)
Returns the width of this image data object.
Sets the alpha value at position (x,y).
alpha | the alpha value |
---|---|
x | the x coordinate |
y | the y coordinate |
getAlphaAt(int, int)
Sets the blue value at position (x,y).
blue | the blue value |
---|---|
x | the x coordinate |
y | the y coordinate |
getBlueAt(int, int)
Sets the green value at position (x,y).
green | the green value |
---|---|
x | the x coordinate |
y | the y coordinate |
getGreenAt(int, int)
Sets the red value at position (x,y).
red | the red value |
---|---|
x | the x coordinate |
y | the y coordinate |
getRedAt(int, int)