ChartToImageConverter Class
Excel Chart To Image Converter.
Inheritance
System.Object
ChartToImageConverter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|
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 |
---|
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 |