←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
C++
public ByteArrayOutputStream Preview(  
   string id, 
   int pageNumber, 
   string commandName, 
   string arguments, 
   int width, 
   int height, 
   Leadtools.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 Leadtools.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)
public: 
ByteArrayOutputStream^ Preview(  
   String^ id, 
   int pageNumber, 
   String^ commandName, 
   String^ arguments, 
   int width, 
   int height, 
   Leadtools.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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Sane.Server Assembly
Click or drag to resize