Class BlurFilter

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(blurX?: number, blurY?: number, quality?: number): BlurFilter

Parameters

  • blurX?: number optional
  • blurY?: number optional
  • quality?: number optional

Returns

BlurFilter

Properties

public blurX: number

public blurY: number

public quality: number

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

Returns

BlurFilter

public getBounds(): Rectangle

Returns

Rectangle

public toString(): string

Returns

string