←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
C#
Java
public ByteArrayOutputStream Preview(  
   string id, 
   int pageNumber, 
   string commandName, 
   string arguments, 
   int width, 
   int height, 
   RasterImageFormat format, 
   int bpp, 
   object userData 
) 
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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Sane.Server Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.