CanvasGenerator

Helper class used to generate a canvas to manipulate images

Hierarchy

  • CanvasGenerator

Index

Methods

Methods

Static CreateCanvas

Find examples in Playground
  • CreateCanvas(width: number, height: number): HTMLCanvasElement | OffscreenCanvas
  • Create a new canvas (or offscreen canvas depending on the context)

    Parameters

    • width: number

      defines the expected width

    • height: number

      defines the expected height

    Returns HTMLCanvasElement | OffscreenCanvas

    a new canvas or offscreen canvas

Generated using TypeDoc