Applies given filter to the given image.
The image to apply filter on.
Filter to be applied.
The result of the filter application.
Crops the given image to the given quadrilateral.
The image to crop.
The quadrilateral of normalized points to crop.
The optimization to apply when cropping a document. The method doesn't actually check if the input is a document photo, so it relies entirely on the caller's intent.
Cropped image.
As the instance is backed by a native resource, it should be disposed when it is no longer needed.
This method will release the native resource.
As a recommended alternative since the class implements AsyncDisposable one can use 'await using' syntax to ensure the resource is disposed of automatically.
If neither is used, the resource will be released when the instance is garbage collected which is not recommended.
A promise that resolves when the instance is disposed.
Rotates the given image by the given angle.
The image to rotate.
Rotation to be applied.
Rotated image.
Staticcreate
API for image processing. *
Example
Since the class is backed by native resources and implements
AsyncDisposableit's highly recommended to use theawait usingsyntax when an instance is created to ensure the resource is disposed automatically:Alternatively, one can explicitly call dispose method to release the native resource. If neither is used, the resource will be released when the instance is garbage collected which is not recommended.