Click or drag to resize
AB4D logo

WpfMaterialCreateLineMaterial(Material, Color, Double) Method

CreateLineMaterial converts WPF's material into DXEngine's LineMaterial. Line's color is get from DiffuseMaterial or EmissiveMaterial if present (else default color is used).

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public LineMaterial CreateLineMaterial(
	Material material,
	Color defaultColor,
	double lineThickness
)

Parameters

material  Material
WPF's material
defaultColor  Color
color that is used if it cannot be get from WPF material
lineThickness  Double
line thickness

Return Value

LineMaterial
DXEngine's LineMaterial
See Also