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.WinForms.Charting.Series3D
Assembly:
Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic bool SetHeightDataFromBitmap(
double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax,
Bitmap bitmap,
BitmapAntialiasOptions options,
bool setNegativeInfinityForAlpha0
)
Public Function SetHeightDataFromBitmap (
xMin As Double,
xMax As Double,
yMin As Double,
yMax As Double,
zMin As Double,
zMax As Double,
bitmap As Bitmap,
options As BitmapAntialiasOptions,
setNegativeInfinityForAlpha0 As Boolean
) As Boolean
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.WinForms.ChartingBitmapAntialiasOptions
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:
BooleanTrue if data was successfully filled, else false.
See Also