Class ChartToImageConverter
Excel Chart To Image Converter.
Inheritance
System.Object
ChartToImageConverter
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.ExcelChartToImageConverter
Assembly: Syncfusion.ExcelChartToImageConverter.Wpf.dll
Syntax
public class ChartToImageConverter : IChartToImageConverter
Constructors
ChartToImageConverter()
Declaration
public ChartToImageConverter()
Properties
ScalingMode
It's represent the chart image Scaling
Declaration
public ScalingMode ScalingMode { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
Syncfusion.UI.Xaml.Charts.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 |
---|---|
Syncfusion.UI.Xaml.Charts.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 | Description |
---|---|
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 |