getFilteredDocumentPreviewUri static method
Creates a preview image file of the DOCUMENT image using the given filter
.
Does not modify the actual DOCUMENT image of the passed page
.
Use the 'applyImageFilter(page, filter)' method to finally apply an image filter on a page
.
Implementation
static Future<Uri> getFilteredDocumentPreviewUri(
Page page, ImageFilterType filter) async {
try {
var arguments = {
'page': page.toJson(),
'filter': imageFilterJsonValue(filter)
};
final uri = await _channel.invokeMethod(
'getFilteredDocumentPreviewUri', arguments);
return Uri.parse(uri);
} catch (e) {
Logger.root.severe(e);
rethrow;
}
}