←Select platform

GetPage Method (ITwainService)

Summary

Gets a specific image page.

Syntax

C#
VB
C++
[OperationContractAttribute(Name="GetPage", Action="GetPage")] 
[WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,  
   IsBodyStyleSetExplicitly=true,  
   IsRequestFormatSetExplicitly=true,  
   IsResponseFormatSetExplicitly=true,  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json,  
   UriTemplate="GetPage?id={id}&pageNumber={pageNumber}&format={format}&bpp={bpp}&width={width}&height={height}&userData={userData}")] 
Stream GetPage(  
   string id, 
   int pageNumber, 
   Leadtools.RasterImageFormat format, 
   int bpp, 
   int width, 
   int height, 
   object userData 
) 
<OperationContractAttribute(Name="GetPage", Action="GetPage")> 
<WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,  
   IsBodyStyleSetExplicitly=True,  
   IsRequestFormatSetExplicitly=True,  
   IsResponseFormatSetExplicitly=True,  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json,  
   UriTemplate="GetPage?id={id}&pageNumber={pageNumber}&format={format}&bpp={bpp}&width={width}&height={height}&userData={userData}")> 
Function GetPage( _ 
   ByVal id As String, _ 
   ByVal pageNumber As Integer, _ 
   ByVal format As Leadtools.RasterImageFormat, _ 
   ByVal bpp As Integer, _ 
   ByVal width As Integer, _ 
   ByVal height As Integer, _ 
   ByVal userData As Object _ 
) As Stream 
[OperationContractAttribute(Name="GetPage", Action="GetPage")] 
[WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,  
   IsBodyStyleSetExplicitly=true,  
   IsRequestFormatSetExplicitly=true,  
   IsResponseFormatSetExplicitly=true,  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json,  
   UriTemplate="GetPage?id={id}&pageNumber={pageNumber}&format={format}&bpp={bpp}&width={width}&height={height}&userData={userData}")] 
Stream^ GetPage(  
   String^ id, 
   int pageNumber, 
   Leadtools.RasterImageFormat format, 
   int bpp, 
   int width, 
   int height, 
   Object^ userData 
) 

Parameters

id
The scanning session Id.

pageNumber
The 1-based page number.

format
The image format.

bpp
The image bits-per-pixel.

width
The image width.

height
The image height.

userData
The user data.

Return Value

The image data.

Requirements

Target Platforms

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