Class: Roberts

ol.ext.SVGFilter. Roberts

Apply a Roberts filter on an image


new Roberts(options)

Parameters:
Name Type Description
options *
Properties
Name Type Description
grayscale boolean

get grayscale image, default false,

alpha boolean

get alpha channel, default false

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: