Click or drag to resize

IntensitySeriesBaseSetHeightDataFromBitmap Method

LightningChart .NET Help
Create data based on bitmap file contents. Data array will have dimensions of the bitmap Width X Height. Use options to reduce resolution and smooth it if needed. Height data of is calculated for each pixel from R, G, and B sum. 0 (black) will have the minimum value, and maximum value is obtained from 3*255 (white). If bitmap has alpha value of 0, the data is set to -INF, and the value is not drawn.

Namespace:  Arction.Wpf.ChartingMVVM.SeriesXY
Assembly:  Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntax
public bool SetHeightDataFromBitmap(
	double xMin,
	double xMax,
	double yMin,
	double yMax,
	double intensityMin,
	double intensityMax,
	Bitmap bitmapIn,
	BitmapAntialiasOptions options
)

Parameters

xMin
Type: SystemDouble
Minimum X.
xMax
Type: SystemDouble
Maximum X.
yMin
Type: SystemDouble
Minimum Y.
yMax
Type: SystemDouble
Maximum Y.
intensityMin
Type: SystemDouble
Minimum intensity.
intensityMax
Type: SystemDouble
Maximum intensity.
bitmapIn
Type: System.DrawingBitmap
Input bitmap.
options
Type: Arction.Wpf.ChartingMVVMBitmapAntialiasOptions
Bitmap resolution decrement and smoothing options. Give null to use pure bitmap data only.

Return Value

Type: Boolean
True if data was successfully filled, else false.
See Also