# applyImageFilter static method

Future<Page> applyImageFilter(

1. Page page,
2. ImageFilterType filter

)

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

## Implementation

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