[]
        
(Showing Draft Content)

FarPoint.Web.Chart.HttpHandlerImageRender

HttpHandlerImageRender Class

The HttpHandlerImageRender renders the chart image to memory using the ChartImageHttpHandler and returns the image Url.

Inheritance
HttpHandlerImageRender
Namespace: FarPoint.Web.Chart
Assembly: FarPoint.Web.Chart.dll
Syntax
[TypeConverter(typeof(ImageRenderConverter))]
public class HttpHandlerImageRender : ImageRender, ISparklineSupportHandler, IParallelSupport
<TypeConverter(GetType(ImageRenderConverter))>
Public Class HttpHandlerImageRender
    Inherits ImageRender
    Implements ISparklineSupportHandler, IParallelSupport
Remarks

HttpHandlerImageRender is recommended when charts are simple (easy to generate) or when you expect requests for a large number of different charts.

HttpHandlerImageRender supplies two ways to save an image on the server, one is saving in HttpContext.Session and another is saving in HttpContext.Cache. An application developer can set the storage means by the ImageTransferStorage property and determine whether to hold the image data or clear it immediately after rendering by using the KeepTransferStorage property.

Constructors

Name Description
HttpHandlerImageRender()

Initializes a new instance of the HttpHandlerImageRender class.

HttpHandlerImageRender(ImageTransferStorage, string, bool)

Initializes a new instance of the HttpHandlerImageRender class.

Properties

Name Description
ImageTransferStorage

Gets or sets the storage mode of saving chart image in memory.

KeepTransferStorage

Gets or sets the value whether to keep the chart instance in session or cache according to the value of ImageTransferStorage property.

TransferId

Gets or sets a key to access session or cache according to the value of ImageTransferStorage property.

Methods

Name Description
GetImageUrl(FpChart)

Gets the image Url.

TransferImage(FpChart)

Renders chart image and returns the image Url.

TransferImage(Image, ImageType)

Tranfer an image object to storage cacche and return its path