Interface HTMLCanvasElement

All Superinterfaces:
CanvasImageSource, Element, ElementCSSInlineStyle, EventTarget, FocusEventTarget, HTMLElement, JSObject, KeyboardEventTarget, LoadEventTarget, MouseEventTarget, Node, WheelEventTarget

public interface HTMLCanvasElement extends HTMLElement, CanvasImageSource
  • Method Details

    • getWidth

      int getWidth()
    • setWidth

      void setWidth(int width)
    • getHeight

      int getHeight()
    • setHeight

      void setHeight(int height)
    • getContext

      JSObject getContext(String contextId)
    • getContext

      JSObject getContext(String contextId, JSObject attributes)
    • toDataURL

      String toDataURL(String type, double quality)
    • toDataURL

      String toDataURL(String type)
    • toDataURL

      String toDataURL()