Class: Paper

ol.ext.SVGFilter. Paper

Apply a sobel filter on an image


new Paper(options)

Parameters:
Name Type Description
options object
Properties
Name Type Argument Default Description
id string <optional>
scale number <optional>
1
ligth number <optional>
50

light option. 0: darker, 100: lighter

Requires:
  • module:ol.filter

Extends

Requires

  • module:ol.filter

Methods


addOperation(operation)

Add a new operation

Parameters:
Name Type Description
operation ol.ext.SVGOperation
Inherited From:
Overrides:

getId()

Get filter ID

Inherited From:
Overrides:
Returns:
Type
string

grayscale(value)

Add a grayscale operation

Parameters:
Name Type Description
value number
Inherited From:
Overrides:

luminanceToAlpha(options)

Add a luminanceToAlpha operation

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

enhance gamma, default 0

Inherited From:
Overrides:

remove()

Remove from DOM

Inherited From:
Overrides:

setLight(light)

Set filter light

Parameters:
Name Type Description
light number

light option. 0: darker, 100: lighter