EmbossBitmapEffect.LightAngle Property

 
obsoleteCodeEntityT:System.Windows.Media.Effects.Effect

Note: This API is now obsolete. The non-obsolete alternative is Effect. Gets or sets the direction the artificial light is cast upon the embossed object.

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

public double LightAngle { get; set; }

Property Value

Type: System.Double

The direction the artificial light is cast upon the embossed object. The valid range is from 0-360 (degrees) with 0 specifying the right-hand side of the object and successive values moving counter-clockwise around the object. The default value is 45.

The direction of light cast on the embossed object affects the shadowing of the embossed visual object.

The following diagram shows what direction light comes from for a given value of this property:

Diagram: DropShadow direction

Identifier field

LightAngleProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show: