←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#
VB
Java
public ByteArrayOutputStream Preview(  
   string id, 
   int pageNumber, 
   string commandName, 
   string arguments, 
   int width, 
   int height, 
   RasterImageFormat format, 
   int bpp, 
   object userData 
) 
Public Function Preview( _ 
   ByVal id As String, _ 
   ByVal pageNumber As Integer, _ 
   ByVal commandName As String, _ 
   ByVal arguments As String, _ 
   ByVal width As Integer, _ 
   ByVal height As Integer, _ 
   ByVal format As RasterImageFormat, _ 
   ByVal bpp As Integer, _ 
   ByVal userData As Object _ 
) As ByteArrayOutputStream 
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.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Sane.Server Assembly

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