Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Generates the chart in the requested format and returns the corresponding binary data.
Public Function ExportAsBinary As Byte()
public byte[] ExportAsBinary();
The ExportAsBinary method returns a binary value that contains the generated SVG image, or JPEG / PNG image, or Flash movie, or PDF document.
This method is actually similar to the ExportAsResponse method. However, ExportAsBinary does not write the generated data to the output. The method actually:
The format of the generated content can be specified by the OutputFormat property.
The following code illustrates use of the ExportAsBinary method.
' Create the chart series Dim values_1(2) As Integer Dim values_2(2) As Integer values_1(0) = 10 values_1(1) = 20 values_1(2) = 30 values_2(0) = 100 values_2(1) = 200 values_2(2) = 300 chart.SetSeriesValuesFromArray( 0, values_1 ) chart.SetSeriesValuesFromArray( 1, values_2 ) ' Set the graphics settings from a style file chart.LoadStyle( "C:\\myStyle.scs" ) ' The chart is complete, we can now generate the movie Dim swf_binary_data As Byte() swf_binary_data= chart.ExportAsBinary()
// Create the chart series int[] values_1= new int[3]; int[] values_2= new int[3]; values_1[0] = 10; values_1[1] = 20; values_1[2] = 30; values_2[0] = 100; values_2[1] = 200; values_2[2] = 300; chart.SetSeriesValuesFromArray( 0, values_1 ); chart.SetSeriesValuesFromArray( 1, values_2 ); // Set the graphics settings from a style file chart.LoadStyle( "C:\\myStyle.scs" ); // The chart is complete, we can now generate the movie byte[] swf_binary_data= chart.ExportAsBinary();
ExportAsFile Method | ExportAsResponse Method | OutputFormat Property
Applies To: Chart Object