Sdílet prostřednictvím


AmbientLight Konstruktory

Definice

Inicializuje novou instanci AmbientLight třídy.

Přetížení

AmbientLight()

Inicializuje novou instanci AmbientLight třídy.

AmbientLight(Color)

Inicializuje novou instanci AmbientLight třídy se zadanou barvou.

AmbientLight()

Inicializuje novou instanci AmbientLight třídy.

public:
 AmbientLight();
public AmbientLight ();
Public Sub New ()

Příklady

Následující příklad vytvoří AmbientLight v kódu.

// Ambient light value.
AmbientLight _ambLight = new AmbientLight(System.Windows.Media.Brushes.DarkBlue.Color);
' Ambient light value.
Private _ambLight As New AmbientLight(System.Windows.Media.Brushes.DarkBlue.Color)

Platí pro

AmbientLight(Color)

Inicializuje novou instanci AmbientLight třídy se zadanou barvou.

public:
 AmbientLight(System::Windows::Media::Color ambientColor);
public AmbientLight (System.Windows.Media.Color ambientColor);
new System.Windows.Media.Media3D.AmbientLight : System.Windows.Media.Color -> System.Windows.Media.Media3D.AmbientLight
Public Sub New (ambientColor As Color)

Parametry

ambientColor
Color

Barva nového světla.

Příklady

// Ambient light value.
AmbientLight _ambLight = new AmbientLight(System.Windows.Media.Brushes.DarkBlue.Color);
' Ambient light value.
Private _ambLight As New AmbientLight(System.Windows.Media.Brushes.DarkBlue.Color)

Platí pro