Nevron .NET Vision
Nevron.Diagram.WebForm Namespace / NDiagramImageResourceHandler Class / RenderImage Method
An HttpContext object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
The state of the web control being rendered.
The viewport for parial rendering.


In This Topic
    RenderImage Method (NDiagramImageResourceHandler)
    In This Topic
    Renders the diagram for a specific Nevron Diagram web control to an image and sends the response to the browser.
    Syntax
    'Declaration
     
    
    Protected Overrides Sub RenderImage( _
       ByVal context As System.Web.HttpContext, _
       ByVal stateTransport As NStateObject, _
       ByVal viewport As System.Nullable(Of NRectangle) _
    ) 
    'Usage
     
    
    Dim instance As NDiagramImageResourceHandler
    Dim context As System.Web.HttpContext
    Dim stateTransport As NStateObject
    Dim viewport As System.Nullable(Of NRectangle)
     
    instance.RenderImage(context, stateTransport, viewport)
    protected override void RenderImage( 
       System.Web.HttpContext context,
       NStateObject stateTransport,
       System.Nullable<NRectangle> viewport
    )

    Parameters

    context
    An HttpContext object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
    stateTransport
    The state of the web control being rendered.
    viewport
    The viewport for parial rendering.
    Remarks
    The response type is "image/png". No cache is enabled by the response. The particular Nevron Diagram web control which is to be rendered is determined based on the WebControlId request query string argument, passed to this HTTP handler. The state of the diagram to render is acquired from the session state. See the OnWebControlLoad method of the NDiagramAjaxTechnology class for details on how the diagram state is persisted over its life-time.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also