Module: StackBlur

StackBlur - a fast almost Gaussian Blur For Canvas

In case you find this class useful - especially in commercial projects - I am not totally unhappy for a small donation to my PayPal account mario@quasimondo.de

Or support me on flattr: https://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript

Version:
  • 0.5
Author:
Source:

Classes

BlurStack

Methods

(static) canvasRGB()

Source:
See:

(static) canvasRGBA()

Source:
See:

(static) image()

Source:
See:

(static) imageDataRGB()

Source:
See:

(static) imageDataRGBA()

Source:
See:

(inner) getImageDataFromCanvas(canvas, topX, topY, width, height) → {ImageData}

Parameters:
Name Type Description
canvas string | HTMLCanvasElement
topX Integer
topY Integer
width Integer
height Integer
Source:
Throws:
Error | TypeError
Returns:
Type
ImageData

(inner) processCanvasRGB(canvas, topX, topY, width, height, radius) → {undefined}

Parameters:
Name Type Description
canvas HTMLCanvasElement
topX Integer
topY Integer
width Integer
height Integer
radius Float
Source:
Returns:
Type
undefined

(inner) processCanvasRGBA(canvas, topX, topY, width, height, radius) → {undefined}

Parameters:
Name Type Description
canvas HTMLCanvasElement
topX Integer
topY Integer
width Integer
height Integer
radius Float
Source:
Returns:
Type
undefined

(inner) processImage(img, canvas, radius, blurAlphaChannel) → {undefined}

Parameters:
Name Type Description
img string | HTMLImageElement
canvas string | HTMLCanvasElement
radius Float
blurAlphaChannel boolean
Source:
Returns:
Type
undefined

(inner) processImageDataRGB(imageData, topX, topY, width, height, radius) → {ImageData}

Parameters:
Name Type Description
imageData ImageData
topX Integer
topY Integer
width Integer
height Integer
radius Float
Source:
Returns:
Type
ImageData

(inner) processImageDataRGBA(imageData, topX, topY, width, height, radius) → {ImageData}

Parameters:
Name Type Description
imageData ImageData
topX Integer
topY Integer
width Integer
height Integer
radius Float
Source:
Returns:
Type
ImageData