Class ChartToImageConverter
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.OfficeChartToImageConverter
Assembly: Syncfusion.OfficeChartToImageConverter.Wpf.dll
Syntax
public class ChartToImageConverter : IOfficeChartToImageConverter
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(IOfficeChart)
Excel chart to sf Chart conversion.
Declaration
public SfChart GetChart(IOfficeChart excelChart)
Parameters
Type | Name | Description |
---|---|---|
IOfficeChart | excelChart | Excel chart |
Returns
Type | Description |
---|---|
SfChart | SfChart |
GetChart3D(IOfficeChart)
Converts an Excel Chart instance into Syncfusion 3D Chart instance.
Declaration
public SfChart3D GetChart3D(IOfficeChart excelChart)
Parameters
Type | Name | Description |
---|---|---|
IOfficeChart | 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(IOfficeChart, Stream)
Excel chart to sf Chart conversion.
Declaration
public void SaveAsImage(IOfficeChart excelChart, Stream imageAsStream)
Parameters
Type | Name | Description |
---|---|---|
IOfficeChart | excelChart | Excel chart |
System.IO.Stream | imageAsStream | Output Stream |