Class CanvasDevice

Constructors

Properties

defaultStrokeThickness: number = 1

Methods

  • Parameters

    • ctx: CanvasRenderingContext2D
    • image: ImageBitmap
    • x: number
    • y: number
    • width: number
    • height: number
    • opacity: number = 100

    Returns void

  • Parameters

    • ctx: CanvasRenderingContext2D
    • x: number
    • y: number
    • width: number
    • height: number

    Returns void

  • Parameters

    • ctx: CanvasRenderingContext2D
    • width: number
    • height: number

    Returns void

  • Parameters

    • ctx: CanvasRenderingContext2D
    • Optionalcolor: string
    • Optionalthickness: number

    Returns void