Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICanvas

Class used to abstract a canvas

Hierarchy

  • ICanvas

Index

Properties

Methods

Properties

heightSearch playground for height

height: number

Canvas height.

widthSearch playground for width

width: number

Canvas width.

Methods

getContextSearch playground for getContext

  • returns a drawing context on the canvas.

    Parameters

    • contextType: string

      context identifier.

    • Optional contextAttributes: any

      context attributes.

    Returns ICanvasRenderingContext

    ICanvasRenderingContext object.

toDataURLSearch playground for toDataURL

  • 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 property
  • Inherited method
  • Static property
  • Static method