# Gimp.DrawableFilter.new

    function new(drawable: Gimp.Drawable, operation_name: String, name: String): Gimp.DrawableFilter {
        // Gjs wrapper for gimp_drawable_filter_new()
    }

Create a new drawable filter.

This procedure creates a new filter for the specified operation on drawable. The new effect still needs to be either added or merged to drawable later. Add the effect non-destructively with [method@Gimp.Drawable.append_filter]. Currently only layers can have non-destructive effects. The effects must be merged for all other types of drawable.

Since 3.0

drawable

  The drawable.

operation_name

  The GEGL operation's name.

name

  The effect name.

Returns

  The newly created filter.