Class Filter

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(): Filter

Returns

Filter

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(): Filter

Returns

Filter

public getBounds(): Rectangle

Returns

Rectangle

public toString(): string

Returns

string