Click or drag to resize

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.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public byte[] CaptureToByteArray(
	out int width,
	out int height,
	out PixelFormat format
)

Parameters

width
Type: SystemInt32
Chart width in pixels
height
Type: SystemInt32
Chart height in pixels
format
Type: Arction.WinForms.ChartingPixelFormat

[Missing <param name="format"/> documentation for "M:Arction.WinForms.Charting.LightningChart.CaptureToByteArray(System.Int32@,System.Int32@,Arction.WinForms.Charting.PixelFormat@)"]

Return Value

Type: Byte
chart'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