Class AlphaMapFilter

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(alphaMap: HTMLImageElement): AlphaMapFilter

Parameters

  • alphaMap: HTMLImageElement

Returns

AlphaMapFilter

constructor(alphaMap: HTMLCanvasElement): AlphaMapFilter

Parameters

  • alphaMap: HTMLCanvasElement

Returns

AlphaMapFilter

Properties

public alphaMap: 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(): AlphaMapFilter

Returns

AlphaMapFilter

public getBounds(): Rectangle

Returns

Rectangle

public toString(): string

Returns

string