LEADTOOLS WebForms and AJAX (Leadtools.Web assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ProcessRequest Method
See Also 
Leadtools.Web.Handlers Namespace > ImageGenerator Class : ProcessRequest Method



context

An System.Web.HttpContext object that provides references to the intrinsic server objects (for example, System.Web.HttpContext.Request, System.Web.HttpContext.Response, System.Web.HttpContext.Session, and System.Web.HttpContext.Server) used to service HTTP requests.

Any parameter to be used in the process of loading the image (for example Url, InputProfile, .etc) should be in a querystring layout which is:

parameter1=value&parameter2=value

The following table contains the parameters that can be passed in the querystring to load full or part of (tile) a spcific image file.

Parameter

Description

Url

A System.String that contains the URL of the image file to be loaded.

InputProfile

System.String Contains the url of the XML file that contains the options to be used as load options.

To see the InputProfile Xml DTD (Document Type Definitions), refer to ImageGenerator Xml Profiles DTD.

OutputProfile

System.String Contains the url of the XML file that contains the options to be used as save options when the image to return in the System.Web.HttpContext.Response parameter.

To see the InputProfile Xml DTD (Document Type Definitions), refer to ImageGenerator Xml Profiles DTD.

context

An System.Web.HttpContext object that provides references to the intrinsic server objects (for example, System.Web.HttpContext.Request, System.Web.HttpContext.Response, System.Web.HttpContext.Session, and System.Web.HttpContext.Server) used to service HTTP requests.

Any parameter to be used in the process of loading the image (for example Url, InputProfile, .etc) should be in a querystring layout which is:

parameter1=value&parameter2=value

The following table contains the parameters that can be passed in the querystring to load full or part of (tile) a spcific image file.

Parameter

Description

Url

A System.String that contains the URL of the image file to be loaded.

InputProfile

System.String Contains the url of the XML file that contains the options to be used as load options.

To see the InputProfile Xml DTD (Document Type Definitions), refer to ImageGenerator Xml Profiles DTD.

OutputProfile

System.String Contains the url of the XML file that contains the options to be used as save options when the image to return in the System.Web.HttpContext.Response parameter.

To see the InputProfile Xml DTD (Document Type Definitions), refer to ImageGenerator Xml Profiles DTD.

Implements System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext) method.

Syntax

Visual Basic (Declaration) 
Public Sub ProcessRequest( _
   ByVal context As HttpContext _
) 
Visual Basic (Usage)Copy Code
Dim instance As ImageGenerator
Dim context As HttpContext
 
instance.ProcessRequest(context)
C# 
public void ProcessRequest( 
   HttpContext context
)
C++/CLI 
public:
void ProcessRequest( 
   HttpContext^ context
) 

Parameters

context

An System.Web.HttpContext object that provides references to the intrinsic server objects (for example, System.Web.HttpContext.Request, System.Web.HttpContext.Response, System.Web.HttpContext.Session, and System.Web.HttpContext.Server) used to service HTTP requests.

Any parameter to be used in the process of loading the image (for example Url, InputProfile, .etc) should be in a querystring layout which is:

parameter1=value&parameter2=value

The following table contains the parameters that can be passed in the querystring to load full or part of (tile) a spcific image file.

Parameter

Description

Url

A System.String that contains the URL of the image file to be loaded.

InputProfile

System.String Contains the url of the XML file that contains the options to be used as load options.

To see the InputProfile Xml DTD (Document Type Definitions), refer to ImageGenerator Xml Profiles DTD.

OutputProfile

System.String Contains the url of the XML file that contains the options to be used as save options when the image to return in the System.Web.HttpContext.Response parameter.

To see the InputProfile Xml DTD (Document Type Definitions), refer to ImageGenerator Xml Profiles DTD.

Remarks

After returning from this method, the image will returns as binary data and can be get from the System.Web.HttpContext.Response property of the context parameter and the System.Web.HttpResponse.ContentType property can be one of the ImageGenerator Output Content Types.

For more information about this method, refer to System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also