public class OffscreenCanvas extends java.lang.Object implements EventTarget
| Modifier and Type | Class and Description |
|---|---|
static interface |
OffscreenCanvas.ConvertToBlobOptionsType |
EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerOptionsUnionType| Constructor and Description |
|---|
OffscreenCanvas(double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(java.lang.String type,
EventListener listener) |
void |
addEventListener(java.lang.String type,
EventListener listener,
EventTarget.AddEventListenerOptionsUnionType options) |
<any> |
convertToBlob() |
<any> |
convertToBlob(OffscreenCanvas.ConvertToBlobOptionsType options) |
boolean |
dispatchEvent(Event evt) |
JsObject |
getContext(java.lang.String contextId) |
JsObject |
getContext(java.lang.String contextId,
JsObject options) |
JsObject |
getContext(java.lang.String contextId,
java.lang.Object options) |
void |
removeEventListener(java.lang.String type,
EventListener listener) |
void |
removeEventListener(java.lang.String type,
EventListener listener,
EventTarget.RemoveEventListenerOptionsUnionType options) |
ImageBitmap |
transferToImageBitmap() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, addEventListener, removeEventListener, removeEventListenerpublic void addEventListener(java.lang.String type,
EventListener listener,
EventTarget.AddEventListenerOptionsUnionType options)
addEventListener in interface EventTargetpublic void addEventListener(java.lang.String type,
EventListener listener)
addEventListener in interface EventTargetpublic <any> convertToBlob()
public <any> convertToBlob(OffscreenCanvas.ConvertToBlobOptionsType options)
public boolean dispatchEvent(Event evt)
dispatchEvent in interface EventTargetpublic JsObject getContext(java.lang.String contextId,
JsObject options)
public final JsObject getContext(java.lang.String contextId,
java.lang.Object options)
public JsObject getContext(java.lang.String contextId)
public void removeEventListener(java.lang.String type,
EventListener listener,
EventTarget.RemoveEventListenerOptionsUnionType options)
removeEventListener in interface EventTargetpublic void removeEventListener(java.lang.String type,
EventListener listener)
removeEventListener in interface EventTargetpublic ImageBitmap transferToImageBitmap()