HTMLCanvasElement.idl 491 B

123456789101112131415
  1. #import <HTML/CanvasRenderingContext2D.idl>
  2. #import <HTML/HTMLElement.idl>
  3. #import <WebGL/WebGLRenderingContext.idl>
  4. typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
  5. interface HTMLCanvasElement : HTMLElement {
  6. RenderingContext? getContext(DOMString contextId, optional any options = null);
  7. attribute unsigned long width;
  8. attribute unsigned long height;
  9. USVString toDataURL(optional DOMString type = "image/png", optional double quality);
  10. };