GLG Toolkit, C# Class Library  Version 4.6
13. Graphics Server

GLG Graphics Server is used for server-side deployment of the GLG Toolkit in the ASP.NET environment. More...

Detailed Description

GLG Graphics Server is used for server-side deployment of the GLG Toolkit in the ASP.NET environment.

It is deployed in the form of an ASP.NET HTTP handler and provides a way to web-deploy existing C# code for legacy applications. This an alternative to a more common web deployment of the GLG applications using the GLG JavaScript Library.

The Graphics Server uses a separate Glg.NETServer.dll GLG class library for the ASP.NET environment that supports headless operation as well as a multi-threaded multi-threaded ASP.NET handlers.

This library has the same interface as the rest of the GLG API with two additional classes (GlgHttpRequestProcessor and GlgHttpRequestData) and a few additional methods (SetImageSize, GetImageWidth and GetImageHeight) that are used in the ASP.NET environment. When used in the Graphics Server, GlgObject methods should be used instead of methods of GlgControl.

The examples_ASP.NET directory of the GLG installation contains source code examples of custom GLG-based ASP.NET HTTP handlers.

Classes

class  GlgHttpRequestData
 An auxiliary class used by GlgHttpRequestProcessor to pass the HTML request data to its custom request processing method and to return generated data for ASP.NET-based custom HTTP handlers. More...
 
class  GlgHttpRequestProcessor
 Request processor class for implementing custom HTTP handlers for ASP.NET. More...
 

Functions

int GetImageHeight ()
 Returns the height of the last image generated by the GLG Graphics Server for the top viewport. More...
 
int GetImageWidth ()
 Returns the width of the last image generated by the GLG Graphics Server for the top viewport. More...
 
delegate void GlgProcessRequestDataFunc (GlgHttpRequestData data)
 A delegate used to pass a custom request proceesing method to an instance of GlgHttpRequestProcessor for ASP.NET-based custom HTTP handlers. More...
 
void SetImageSize (int width, int height)
 Sets the size of the image to be generated by the Graphics Server for this top viewport. More...
 

Function Documentation

◆ GetImageHeight()

int GetImageHeight ( )

Returns the height of the last image generated by the GLG Graphics Server for the top viewport.

Returns
Image height.

◆ GetImageWidth()

int GetImageWidth ( )

Returns the width of the last image generated by the GLG Graphics Server for the top viewport.

Returns
Image width.

◆ GlgProcessRequestDataFunc()

delegate void GenLogic.GlgProcessRequestDataFunc ( GlgHttpRequestData  data)

A delegate used to pass a custom request proceesing method to an instance of GlgHttpRequestProcessor for ASP.NET-based custom HTTP handlers.

◆ SetImageSize()

void SetImageSize ( int  width,
int  height 
)

Sets the size of the image to be generated by the Graphics Server for this top viewport.

Parameters
widthThe width of the image to be generated.
heightThe height of the image to be generated.