Class: Filter

PhotoEditorSDK. Filter

Base class for filters. Extendable via PhotoEditorSDK.Filter#extend

new PhotoEditorSDK.Filter()

sdk/operations/filters/filter.js, line 26

Classes

PrimitivesStack

Members

staticPhotoEditorSDK.Filter.displayNameString

This string is used by the UI

staticPhotoEditorSDK.Filter.identifierString

A unique string that identifies this filter

staticPhotoEditorSDK.Filter.isIdentityBoolean

If isIdentity is true, this filter does not do anything and can be seen as the default filter.

Methods

dispose()

sdk/operations/filters/filter.js, line 81

Cleans this instance up

disposeRenderTextures()

sdk/operations/filters/filter.js, line 74

Frees the memory

render(sdk, inputTexture, outputTexture){Promise}

sdk/operations/filters/filter.js, line 54

Renders the filter

Name Type Description
sdk PhotoEditorSDK
inputTexture PhotoEditorSDK.Engine.Texture
outputTexture PhotoEditorSDK.Engine.RenderTexture
Returns:
Type Description
Promise

setDirtyForRenderer(dirty, renderer)

sdk/operations/filters/filter.js, line 67

Sets the dirtiness for the given renderer

Name Type Description
dirty Boolean
renderer PhotoEditorSDK.Engine.BaseRenderer