@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ImageData")
public class ImageData
extends JsObject
implements TexImageSource, ImageBitmapSource
| 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(int sw,
int sh,
ImageDataSettings settings)
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.
|
ImageData(Uint8ClampedArray data,
int sw,
int sh,
ImageDataSettings settings)
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 |
|---|---|
java.lang.String |
colorSpace() |
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.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic ImageData(int sw,
int sh,
@Nonnull
ImageDataSettings settings)
public ImageData(int sw,
int sh)
public ImageData(@Nonnull
Uint8ClampedArray data,
int sw,
int sh,
@Nonnull
ImageDataSettings settings)
public ImageData(@Nonnull
Uint8ClampedArray data,
int sw,
int sh)
public ImageData(@Nonnull
Uint8ClampedArray data,
int sw)
@JsProperty(name="colorSpace") @Nonnull @PredefinedColorSpace public java.lang.String colorSpace()
@JsProperty(name="data") @Nonnull public Uint8ClampedArray data()
@JsProperty(name="height") public int height()
@JsProperty(name="width") public int width()