Gets a preview for a command for the specified page of an image in the
Leadtools.Sane session manager.
public ByteArrayOutputStream Preview(
string ,
int ,
string commandName,
string ,
int ,
int ,
RasterImageFormat ,
int ,
object
)
'Declaration
Public Function Preview( _
ByVal As String, _
ByVal As Integer, _
ByVal commandName As String, _
ByVal As String, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As RasterImageFormat, _
ByVal As Integer, _
ByVal 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. 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