Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SpotLight Constructor (Color, Point3D, Vector3D, Double, Double)
Collapse the table of content
Expand the table of content

SpotLight Constructor (Color, Point3D, Vector3D, Double, Double)

Initializes a new instance of the SpotLight class using the specified color, position, direction, and cone angles.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public SpotLight(
	Color diffuseColor,
	Point3D position,
	Vector3D direction,
	double outerConeAngle,
	double innerConeAngle
)

Parameters

diffuseColor
Type: System.Windows.Media.Color

Diffuse color of the new SpotLight.

position
Type: System.Windows.Media.Media3D.Point3D

Position of the new SpotLight.

direction
Type: System.Windows.Media.Media3D.Vector3D

Direction of the new SpotLight.

outerConeAngle
Type: System.Double

Angle that defines a cone outside which the light does not illuminate objects in the scene.

innerConeAngle
Type: System.Double

Angle that defines a cone within which the light fully illuminates objects in the scene.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft