Click or drag to resize
AB4D logo

WpfMaterialCreateLineMaterial(Material, Color4, Single) 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,
	Color4 defaultColor,
	float lineThickness
)

Parameters

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

Return Value

LineMaterial
DXEngine's LineMaterial
See Also