Gets the preview for the command.
'Declaration
Public Overridable 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 Stream
'Usage
Dim instance As TwainScanningService
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 Stream
value = instance.Preview(id, pageNumber, commandName, arguments, width, height, format, bpp, userData)
Parameters
- id
- The scanning session Id.
- pageNumber
- 1-based page number.
- commandName
- The command name.
- arguments
- The command arguments.
- width
- The image width.
- height
- The image height.
- format
- The image format.
- bpp
- The image bits-per-pixel.
- userData
- The user data.
Return Value
Gets an image of the preview of the command.