Class: SVGFilter

ol.ext. SVGFilter

SVG filter


new SVGFilter(options)

Parameters:
Name Type Description
options *
option.operation ol.ext.SVGOperation
option.id string

filter id, only to use if you want to adress the filter directly or var the lib create one, if none create a unique id

option.color string

color interpolation filters, linear or sRGB

Classes

Laplacian
Paper
Prewitt
Roberts
Sobel

Methods


addOperation(operation)

Add a new operation

Parameters:
Name Type Description
operation ol.ext.SVGOperation

getId()

Get filter ID

Returns:
Type
string

grayscale(value)

Add a grayscale operation

Parameters:
Name Type Description
value number

luminanceToAlpha(options)

Add a luminanceToAlpha operation

Parameters:
Name Type Description
options *
Properties
Name Type Description
gamma number

enhance gamma, default 0


remove()

Remove from DOM