←Select platform

Preview Method (SaneScanningService)

Summary
Gets a preview for a command for the specified page of an image in the Leadtools.Sane session manager.
Syntax
Java
ByteArrayOutputStream preview(String id, int pageNumber, String commandName, String arguments, int width, int height, RasterImageFormat format, int bpp, Object userData) 

Parameters

id
Scanning session ID

pageNumber
Page to process. pageNumber is 1-based

commandName
Name of the command to preview

arguments
Arguments to pass to the command to preview

width
Width of the preview image to return.

height
Height of the preview image to return.

format
File format of the preview image to return

bpp
Bits-per-pixel of the preview image to return

userData
User data object

Return Value

Image in the format, bits per pixel, dimensions and processed with the command and arguments specified

Remarks

Processes the image page without changing the image stored in the session manager

Requirements

Target Platforms

Help Version 21.0.2021.3.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Sane.Server Assembly