Click or drag to resize

SurfaceSeries3DBaseSetHeightDataFromBitmap 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.Series3D
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 zMin,
	double zMax,
	Bitmap bitmap,
	BitmapAntialiasOptions options,
	bool setNegativeInfinityForAlpha0
)

Parameters

xMin
Type: SystemDouble
Minimum X.
xMax
Type: SystemDouble
Maximum X.
yMin
Type: SystemDouble
Minimum Y.
yMax
Type: SystemDouble
Maximum Y.
zMin
Type: SystemDouble
Minimum Z.
zMax
Type: SystemDouble
Maximum Z.
bitmap
Type: System.DrawingBitmap
Input bitmap.
options
Type: Arction.Wpf.ChartingMVVMBitmapAntialiasOptions
Bitmap resolution decrement and smoothing options. Give null to use pure bitmap data only.
setNegativeInfinityForAlpha0
Type: SystemBoolean
Sets NegativeInfinity when bitmap pixel has alpha = 0.

Return Value

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