Gets a preview for a command for the specified page of an image in the
Leadtools.Services.Twain session manager.
[OperationContractAttribute(Name="Preview", Action="Preview")]
[WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
UriTemplate="Preview?id={id}&pageNumber={pageNumber}&commandName={commandName}&arguments={arguments}&width={width}&height={height}&format={format}&bpp={bpp}&userData={userData}")]
Stream Preview(
string ,
int ,
string commandName,
string ,
int ,
int ,
RasterImageFormat ,
int ,
object
)
'Declaration
<OperationContractAttribute(Name="Preview", Action="Preview")>
<WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
UriTemplate="Preview?id={id}&pageNumber={pageNumber}&commandName={commandName}&arguments={arguments}&width={width}&height={height}&format={format}&bpp={bpp}&userData={userData}")>
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 IImageProcessingService
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)
[OperationContractAttribute(Name="Preview", Action="Preview")]
[WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
UriTemplate="Preview?id={id}&pageNumber={pageNumber}&commandName={commandName}&arguments={arguments}&width={width}&height={height}&format={format}&bpp={bpp}&userData={userData}")]
Stream^ Preview(
String^ ,
int ,
String^ commandName,
String^ ,
int ,
int ,
RasterImageFormat ,
int ,
Object^
)
Parameters
- id
- Scanning session Id.
- pageNumber
- Page to process. is one-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.