|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.JavaScriptObject com.google.gwt.canvas.dom.client.ImageData
public class ImageData
Object that holds image data and a size.
Constructor Summary | |
---|---|
protected |
ImageData()
|
Method Summary | |
---|---|
int |
getAlphaAt(int x,
int y)
Returns the alpha value at position (x,y). |
int |
getBlueAt(int x,
int y)
Returns the blue value at position (x,y). |
CanvasPixelArray |
getData()
Returns a canvas pixel array of size width * height * 4. |
int |
getGreenAt(int x,
int y)
Returns the green value at position (x,y). |
int |
getHeight()
Returns the height of this image data object. |
int |
getRedAt(int x,
int y)
Returns the red value at position (x,y). |
int |
getWidth()
Returns the width of this image data object. |
void |
setAlphaAt(int alpha,
int x,
int y)
Sets the alpha value at position (x,y). |
void |
setBlueAt(int blue,
int x,
int y)
Sets the blue value at position (x,y). |
void |
setGreenAt(int green,
int x,
int y)
Sets the green value at position (x,y). |
void |
setRedAt(int red,
int x,
int y)
Sets the red value at position (x,y). |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, 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 ImageData()
Method Detail |
---|
public final int getAlphaAt(int x, int y)
x
- the x coordinatey
- the y coordinate
setAlphaAt(int, int, int)
,
getColorAt(int, int, int)
public final int getBlueAt(int x, int y)
x
- the x coordinatey
- the y coordinate
setBlueAt(int, int, int)
,
getColorAt(int, int, int)
public final CanvasPixelArray getData()
CanvasPixelArray
objectpublic final int getGreenAt(int x, int y)
x
- the x coordinatey
- the y coordinate
setGreenAt(int, int, int)
,
getColorAt(int, int, int)
public final int getHeight()
public final int getRedAt(int x, int y)
x
- the x coordinatey
- the y coordinate
setRedAt(int, int, int)
,
getColorAt(int, int, int)
public final int getWidth()
public final void setAlphaAt(int alpha, int x, int y)
alpha
- the alpha valuex
- the x coordinatey
- the y coordinategetAlphaAt(int, int)
,
getColorAt(int, int, int)
public final void setBlueAt(int blue, int x, int y)
blue
- the blue valuex
- the x coordinatey
- the y coordinategetBlueAt(int, int)
,
getColorAt(int, int, int)
public final void setGreenAt(int green, int x, int y)
green
- the green valuex
- the x coordinatey
- the y coordinategetGreenAt(int, int)
,
getColorAt(int, int, int)
public final void setRedAt(int red, int x, int y)
red
- the red valuex
- the x coordinatey
- the y coordinategetRedAt(int, int)
,
getColorAt(int, int, int)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |