Leadtools.Web.Handlers Namespace > ImageGenerator Class : ProcessRequest Method |
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¶meter2=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 | A System.String that 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. |
public void ProcessRequest( HttpContext context )
'Declaration Public Sub ProcessRequest( _ ByVal context As HttpContext _ )
'Usage Dim instance As ImageGenerator Dim context As HttpContext instance.ProcessRequest(context)
public: void ProcessRequest( HttpContext^ 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¶meter2=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 | A System.String that 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. |
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).