@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ImageData")
public class ImageData
extends java.lang.Object
implements TexImageSource
| Constructor and Description |
|---|
ImageData(int sw,
int sh)
The ImageData() constructor returns a newly instantiated ImageData object built from the typed array given and having the specified width and height.
|
ImageData(Uint8ClampedArray data,
int sw)
The ImageData() constructor returns a newly instantiated ImageData object built from the typed array given and having the specified width and height.
|
ImageData(Uint8ClampedArray data,
int sw,
int sh)
The ImageData() constructor returns a newly instantiated ImageData object built from the typed array given and having the specified width and height.
|
| Modifier and Type | Method and Description |
|---|---|
Uint8ClampedArray |
data()
The readonly ImageData.data property returns a Uint8ClampedArray that contains the ImageData object's pixel data.
|
int |
height()
The readonly ImageData.height property returns the number of rows in the ImageData object.
|
int |
width()
The readonly ImageData.width property returns the number of pixels per row in the ImageData object.
|
public ImageData(int sw,
int sh)
public ImageData(@Nonnull
Uint8ClampedArray data,
int sw,
int sh)
public ImageData(@Nonnull
Uint8ClampedArray data,
int sw)
@JsProperty(name="data") @Nonnull public Uint8ClampedArray data()
@JsProperty(name="height") public int height()
@JsProperty(name="width") public int width()