Nevron .NET Vision
Nevron.Chart.WebForm Namespace / NChartImageResourceHandler 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 (NChartImageResourceHandler)
    In This Topic
    Renders the chart for a specific Nevron Chart 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 NChartImageResourceHandler
    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 Chart 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 chart to render is acquired from the session state. See the OnWebControlLoad method of the NChartAjaxTechnology class for details on how the chart 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