# applyFiltersOnImage method

Future<SBDImageResult> applyFiltersOnImage(

1. String imageFileUri,
2. List<ParametricFilter> parametricFilters

)

Applies a list of `parametricFilters` to the image at `imageFileUri`.

Filters enhance or transform the image appearance.

## Implementation

    Future<SBDImageResult> applyFiltersOnImage(
        String imageFileUri, List<ParametricFilter> parametricFilters) async {
      try {
        var arguments = {
          'imageFileUri': imageFileUri,
          'parametricFilters':
              parametricFilters.map((filter) => filter.toJson()).toList()
        };

        var result = await ScanbotSdk.channel
            .invokeMethod('applyFiltersOnImage', arguments);

        return SBDImageResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }