LightningChartCaptureToByteArray Method |
LightningChart .NET Help
Get the last frame rendered by the chart as byte array containing just pixel data four bytes per pixel.
To get the image data with headers, like in bpm or png format, use SaveToStream method
Namespace:
Arction.Wpf.ChartingMVVM
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic byte[] CaptureToByteArray(
out int width,
out int height,
out PixelFormat format
)
Public Function CaptureToByteArray (
<OutAttribute> ByRef width As Integer,
<OutAttribute> ByRef height As Integer,
<OutAttribute> ByRef format As PixelFormat
) As Byte()
public:
array<unsigned char>^ CaptureToByteArray(
[OutAttribute] int% width,
[OutAttribute] int% height,
[OutAttribute] PixelFormat% format
)
Parameters
- width
- Type: SystemInt32
Chart width in pixels - height
- Type: SystemInt32
Chart height in pixels - format
- Type: Arction.Wpf.ChartingMVVMPixelFormat
[Missing <param name="format"/> documentation for "M:Arction.Wpf.ChartingMVVM.LightningChart.CaptureToByteArray(System.Int32@,System.Int32@,Arction.Wpf.ChartingMVVM.PixelFormat@)"]
Return Value
Type:
Bytechart's last rendered raw image as byte array. Each pixel is represented by 4 bytes in the order defined by the format parameter.
See Also