Class AlphaMaskFilter

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(mask: HTMLImageElement): AlphaMaskFilter

Parameters

  • mask: HTMLImageElement

Returns

AlphaMaskFilter

constructor(mask: HTMLCanvasElement): AlphaMaskFilter

Parameters

  • mask: HTMLCanvasElement

Returns

AlphaMaskFilter

Properties

public mask: any

Methods

public applyFilter(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, targetCtx?: CanvasRenderingContext2D, targetX?: number, targetY?: number): boolean

Parameters

  • ctx: CanvasRenderingContext2D
  • x: number
  • y: number
  • width: number
  • height: number
  • targetCtx?: CanvasRenderingContext2D optional
  • targetX?: number optional
  • targetY?: number optional

Returns

boolean

public clone(): AlphaMaskFilter

Returns

AlphaMaskFilter

public getBounds(): Rectangle

Returns

Rectangle

public toString(): string

Returns

string