Visual Basic (Declaration) | |
---|---|
Public Property ImageRender As ImageRender |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As FpChart Dim value As ImageRender instance.ImageRender = value value = instance.ImageRender |
C# | |
---|---|
public ImageRender ImageRender {get; set;} |
There are 2 built-in image renderers, HttpHandlerImageRender and FileImageRender. The default image renderer is HttpHandlerImageRender.
This example uses the ImageRender property.
C# | Copy Code |
---|---|
this.FpChart1.ImageRender = new FarPoint.Web.Chart.HttpHandlerImageRender(); FarPoint.Web.Chart.HttpHandlerImageRender httpHandlerRender = this.FpChart1.ImageRender as FarPoint.Web.Chart.HttpHandlerImageRender; httpHandlerRender.ImageTransferStorage = FarPoint.Web.Chart.ImageTransferStorage.Session; //or cache httpHandlerRender.TransferId = "123"; httpHandlerRender.KeepTransferStorage = true; |
Visual Basic | Copy Code |
---|---|
Me.FpChart1.ImageRender = New FarPoint.Web.Chart.HttpHandlerImageRender() Dim httpHandlerRender As FarPoint.Web.Chart.HttpHandlerImageRender = TryCast(Me.FpChart1.ImageRender, FarPoint.Web.Chart.HttpHandlerImageRender) httpHandlerRender.ImageTransferStorage = FarPoint.Web.Chart.ImageTransferStorage.Session 'or cache httpHandlerRender.TransferId = "123" httpHandlerRender.KeepTransferStorage = True |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family