# applyImageFilter static method

Future<Page> applyImageFilter(

1. Page page,
2. List<ParametricFilter> filters

)

Applies an image `filters` on the final DOCUMENT image of the given `page`.

## Implementation

    static Future<Page> applyImageFilter(
        Page page, List<ParametricFilter> filters) async {
      try {
        var arguments = {
          'page': page.toJson(),
          'parametricFilters': filters.map((filter) => filter.toJson()).toList()
        };
        final pageJson =
            await _channel.invokeMethod('applyImageFilter', arguments);
        var decoded = jsonDecode(pageJson);
        return Page.fromJson(decoded);
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }