Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to abstract a canvas

Hierarchy

  • ICanvas

Index

Properties

height: number

Canvas height.

width: number

Canvas width.

Methods

  • returns a drawing context on the canvas.

    Parameters

    • contextType: string

      context identifier.

    • Optional contextAttributes: any

      context attributes.

    Returns ICanvasRenderingContext

    ICanvasRenderingContext object.

  • toDataURL(mime: string): string
  • returns a data URI containing a representation of the image in the format specified by the type parameter.

    Parameters

    • mime: string

      the image format.

    Returns string

    string containing the requested data URI.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme