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.DisconnectedCallbackFnElement.AfterNodesUnionType, Element.AppendNodesUnionType, Element.BeforeNodesUnionType, 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.OnsubmitFn, Element.OntextinputFn, Element.OntouchcancelFn, Element.OntouchendFn, Element.OntouchmoveFn, Element.OntouchstartFn, Element.OnunloadFn, Element.OnwheelFn, Element.PrependNodesUnionType, Element.ReplaceWithNodesUnionType, Element.ScrollIntoViewTopType, Element.ScrollIntoViewTopUnionType, Element.ScrollToScrollToOptionsOrXType, Element.ScrollToScrollToOptionsOrXUnionType, Element.SetAttributeNSValueUnionType, Element.SetAttributeValueUnionTypeEventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerOptionsUnionType| Modifier and Type | Field and Description |
|---|---|
int |
height |
int |
width |
attachedCallback, className, connectedCallback, contextMenu, createdCallback, dataset, detachedCallback, dir, disconnectedCallback, draggable, dropzone, hidden, id, lang, nonce, observedAttributes, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, shadowRoot, spellcheck, style, tabIndex, titleALLOW_KEYBOARD_INPUT, attributes, childElementCount, children, classList, clientHeight, clientLeft, clientTop, clientWidth, firstElementChild, 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, onsubmit, ontextinput, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onunload, onwheel, outerHTML, previousElementSibling, schemaTypeInfo, scrollHeight, scrollLeft, scrollTop, scrollWidth, slot, tagNameassignedSlot, 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, XPATH_NAMESPACE_NODE| 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) |
adoptedCallback, attachShadow, attributeChangedCallback, createShadowRoot, getDestinationInsertionPoints, getElementsByClassName, webkitCreateShadowRootafter, after, after, append, append, append, before, before, before, blur, click, closest, focus, getAttribute, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClientRects, 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, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNS, setAttributeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, toggleAttribute, toggleAttribute, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen, webkitRequestFullscreen, webkitRequestFullScreenaddEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getFeature, getRootNode, getRootNode, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setUserData, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, addEventListener, removeEventListener, removeEventListenerpublic 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)