Class
OfficeScanProcessor
OfficeIMO.Drawing
Dependency-free, bounded preparation of document scans with reversible coordinate mapping.
Inheritance
- object
- OfficeScanProcessor
Methods
public static OfficeScanPerspectiveResult CorrectPerspective(OfficeRasterImage source, OfficeScanPerspectiveOptions options, CancellationToken cancellationToken = default) #Rectifies an explicitly selected convex page quadrilateral before optional affine and tonal cleanup.
Parameters
- source OfficeIMO.Drawing.OfficeRasterImage
- options OfficeIMO.Drawing.OfficeScanPerspectiveOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeScanPerspectiveResultpublic static OfficeScanProcessingResult Process(OfficeRasterImage source, OfficeScanProcessingOptions? options = null, CancellationToken cancellationToken = default) #Processes a separately owned image while preserving the source and reporting every requested transformation.
Parameters
- source OfficeIMO.Drawing.OfficeRasterImage
- options OfficeIMO.Drawing.OfficeScanProcessingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeScanProcessingResultExceptions
OfficeScanProcessingLimitException– A configured pixel, buffer, or analysis-work limit cannot be met.