applyFilter

fun applyFilter(page: Page, parametricFilter: ParametricFilter): Page

Applies an image filter on given page based on the existing unfiltered document image. The filtered image result will be stored as document image of the page. The current document image of the page will be overwritten. The original image of the page will not be modified.

Return

New Page instance with updated Page.filter field.

Parameters

page

Existing page with unfiltered document image.

parametricFilter

Supported filter type.

See also

Throws

If the unfiltered document image does not exists for Page.

If there is a problem with access to image bitmap.


fun applyFilter(page: Page, parametricFilters: List<ParametricFilter>): Page

Applies an image filters in a given order in the list on given page based on the existing unfiltered document image. The filtered image result will be stored as document image of the page. The current document image of the page will be overwritten. The original image of the page will not be modified.

Return

New Page instance with updated Page.filter field.

Parameters

page

Existing page with unfiltered document image.

parametricFilters

List of the supported filter types.

See also

Throws

If the unfiltered document image does not exists for Page.

If there is a problem with access to image bitmap.