public class HTMLCanvasElement extends HTMLElement
Modifier and Type | Class and Description |
---|---|
static interface |
HTMLCanvasElement.ToBlobCallbackFn |
HTMLElement.AttachedCallbackFn, HTMLElement.AttachShadowOptionsType, HTMLElement.ConnectedCallbackFn, HTMLElement.CreatedCallbackFn, HTMLElement.DetachedCallbackFn, HTMLElement.DisconnectedCallbackFn
Element.AfterNodesUnionType, Element.AppendNodesUnionType, Element.BeforeNodesUnionType, Element.FocusOptionsType, Element.MatchesSelectorRefNodesUnionType, Element.OnabortFn, Element.OnbeforeinputFn, Element.OnbeforeunloadFn, Element.OnblurFn, Element.OnchangeFn, Element.OnclickFn, Element.OncompositionendFn, Element.OncompositionstartFn, Element.OncompositionupdateFn, Element.OncontextmenuFn, Element.OncopyFn, Element.OncutFn, Element.OndblclickFn, Element.OnerrorFn, Element.OnfocusFn, Element.OnfocusinFn, Element.OnfocusoutFn, Element.OninputFn, Element.OnkeydownFn, Element.OnkeypressFn, Element.OnkeyupFn, Element.OnloadFn, Element.OnmousedownFn, Element.OnmousemoveFn, Element.OnmouseoutFn, Element.OnmouseoverFn, Element.OnmouseupFn, Element.OnmousewheelFn, Element.OnpasteFn, Element.OnresetFn, Element.OnresizeFn, Element.OnscrollFn, Element.OnselectFn, Element.OnselectionchangeFn, Element.OnselectstartFn, Element.OnsubmitFn, Element.OntextinputFn, Element.OntouchcancelFn, Element.OntouchendFn, Element.OntouchmoveFn, Element.OntouchstartFn, Element.OnunloadFn, Element.OnwheelFn, Element.PrependNodesUnionType, Element.ReplaceWithNodesUnionType, Element.ScrollIntoViewTopUnionType, Element.ScrollToScrollToOptionsOrXUnionType, Element.SetAttributeNSValueUnionType, Element.SetAttributeValueUnionType
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType
Modifier and Type | Field and Description |
---|---|
int |
height |
int |
width |
attachedCallback, className, connectedCallback, contextMenu, createdCallback, dataset, detachedCallback, dir, disconnectedCallback, draggable, dropzone, hidden, lang, nonce, observedAttributes, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, shadowRoot, spellcheck, style, tabIndex, title
ALLOW_KEYBOARD_INPUT, attributes, childElementCount, classList, clientHeight, clientLeft, clientTop, clientWidth, firstElementChild, id, innerHTML, lastElementChild, nextElementSibling, onabort, onbeforeinput, onbeforeunload, onblur, onchange, onclick, oncompositionend, oncompositionstart, oncompositionupdate, oncontextmenu, oncopy, oncut, ondblclick, onerror, onfocus, onfocusin, onfocusout, oninput, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpaste, onreset, onresize, onscroll, onselect, onselectionchange, onselectstart, onsubmit, ontextinput, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onunload, onwheel, outerHTML, previousElementSibling, scrollHeight, scrollLeft, scrollTop, scrollWidth, slot, tagName
assignedSlot, ATTRIBUTE_NODE, baseURI, CDATA_SECTION_NODE, childNodes, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, firstChild, isConnected, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, NOTATION_NODE, ownerDocument, parentElement, parentNode, prefix, previousSibling, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent
Constructor and Description |
---|
HTMLCanvasElement() |
Modifier and Type | Method and Description |
---|---|
MediaStream |
captureStream() |
MediaStream |
captureStream(double framerate) |
JsObject |
getContext(java.lang.String contextId) |
JsObject |
getContext(java.lang.String contextId,
JsObject args) |
JsObject |
getContext(java.lang.String contextId,
java.lang.Object args) |
java.lang.Object |
toBlob(HTMLCanvasElement.ToBlobCallbackFn callback) |
java.lang.Object |
toBlob(HTMLCanvasElement.ToBlobCallbackFn callback,
java.lang.String type,
java.lang.Object... var_args) |
java.lang.String |
toDataURL() |
java.lang.String |
toDataURL(java.lang.String type,
java.lang.Object... var_args) |
OffscreenCanvas |
transferControlToOffscreen() |
adoptedCallback, attachShadow, attributeChangedCallback, createShadowRoot, getDestinationInsertionPoints, webkitCreateShadowRoot
after, after, after, append, append, append, before, before, before, blur, closest, focus, focus, getAttribute, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClientRects, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, matches, matchesSelector, matchesSelector, matchesSelector, matchesSelector, mozMatchesSelector, mozRequestFullScreen, mozRequestFullScreenWithKeys, msMatchesSelector, msRequestFullscreen, oMatchesSelector, prepend, prepend, prepend, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceWith, replaceWith, replaceWith, requestFullscreen, requestFullscreen, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoView, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNS, setAttributeNS, setAttributeNS, toggleAttribute, toggleAttribute, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getFeature, getRootNode, getRootNode, getUserData, hasAttributes, hasChildNodes, insertAdjacentElement, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventListener, addEventListener, removeEventListener, removeEventListener
public MediaStream captureStream()
public MediaStream captureStream(double framerate)
public JsObject getContext(java.lang.String contextId, JsObject args)
public final JsObject getContext(java.lang.String contextId, java.lang.Object args)
public JsObject getContext(java.lang.String contextId)
public java.lang.Object toBlob(HTMLCanvasElement.ToBlobCallbackFn callback, java.lang.String type, java.lang.Object... var_args)
public java.lang.Object toBlob(HTMLCanvasElement.ToBlobCallbackFn callback)
public java.lang.String toDataURL()
public java.lang.String toDataURL(java.lang.String type, java.lang.Object... var_args)
public OffscreenCanvas transferControlToOffscreen()