Class ChartToImageConverter
Excel Chart To Image Converter.
Inheritance
System.Object
ChartToImageConverter
Implements
Namespace: Syncfusion.ExcelChartToImageConverter
Assembly: Syncfusion.ExcelChartToImageConverter.WPF.dll
Syntax
public class ChartToImageConverter : Object, IChartToImageConverter
Constructors
ChartToImageConverter()
Declaration
public ChartToImageConverter()
Properties
ScalingMode
It's represent the chart image Scaling
Declaration
public ScalingMode ScalingMode { get; set; }
Property Value
Type |
---|
ScalingMode |
Methods
GetChart(IChart)
Excel chart to sf Chart conversion.
Declaration
public SfChart GetChart(IChart excelChart)
Parameters
Type | Name | Description |
---|---|---|
IChart | excelChart | Excel chart |
Returns
Type | Description |
---|---|
SfChart | SfChart |
GetChart3D(IChart)
Converts an Excel Chart instance into Syncfusion 3D Chart instance.
Declaration
public SfChart3D GetChart3D(IChart excelChart)
Parameters
Type | Name | Description |
---|---|---|
IChart | excelChart | Excel chart |
Returns
Type | Description |
---|---|
SfChart3D | SfChart3D |
GetRenderTargetBitmap(Size)
Get RenderTargetBitmap object.
Declaration
public RenderTargetBitmap GetRenderTargetBitmap(Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | size | sf chart size |
Returns
Type |
---|
System.Windows.Media.Imaging.RenderTargetBitmap |
SaveAsImage(IChart, Stream)
Excel chart to sf Chart conversion.
Declaration
public void SaveAsImage(IChart excelChart, Stream imageAsStream)
Parameters
Type | Name | Description |
---|---|---|
IChart | excelChart | Excel chart |
System.IO.Stream | imageAsStream | Output Stream |