Error processing SSI file
Leadtools Sane.Server (Leadtools.Sane.Server assembly)

Show in webframe

Preview Method (SaneScanningService)






Scanning session ID
Page to process. pageNumber is 1-based
Name of the command to preview
Arguments to pass to the command to preview
Width of the preview image to return.
Height of the preview image to return.
File format of the preview image to return
Bits-per-pixel of the preview image to return
User data object
Gets a preview for a command for the specified page of an image in the Leadtools.Sane session manager.
Syntax
'Declaration
 
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
'Usage
 
Dim instance As SaneScanningService
Dim id As String
Dim pageNumber As Integer
Dim commandName As String
Dim arguments As String
Dim width As Integer
Dim height As Integer
Dim format As RasterImageFormat
Dim bpp As Integer
Dim userData As Object
Dim value As ByteArrayOutputStream
 
value = instance.Preview(id, pageNumber, commandName, arguments, width, height, format, bpp, 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

See Also

Reference

SaneScanningService Class
SaneScanningService Members

Error processing SSI file
Leadtools.Sane.Server requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features