ExplainImageProcessing (open)

Explain how this image will be processed

Syntax

LOADLIB "wh::graphics/canvas.whlib";

RECORD FUNCTION ExplainImageProcessing(RECORD scannedblob, RECORD method)

Parameters

RECORD scannedblob

Scanned blob

RECORD method

Image resize method

bgcolor

Background color (either STRING or INTEGER, will be transformed to INTEGER)

fixorientation
STRING format

Output format One of "", "image/png", "image/jpeg", "image/gif".

grayscale
INTEGER hblur

Horizontal blur (0-32767)

STRING method

Method to use. One of "none", "fit", "fitcanvas", "scale", "scalecanvas", "fill", "stretch", "stretch-x", "stretch-y", "crop", "cropcanvas".

noforce
FUNCTION PTR postprocessor

Post processing function

INTEGER quality

Quality (0-100)

INTEGER setheight
INTEGER setwidth
INTEGER vblur

Vertical blur (0-32767)

Return value

RECORD

Impage processing instructions

BOOLEAN mirror

Mirror the image horizontally, after applying rotation

INTEGER rotation

Rotation to apply to the image (0,90,180 or 270)