BevelBitmapEffect.LightAngle 属性


注意:此 API 现已过时。Note: This API is now obsolete. 未过时的替代项为 EffectThe non-obsolete alternative is Effect. 获取或设置创造棱台阴影的“虚拟光”所来自的方向。Gets or sets the direction the "virtual light" is coming from that creates the shadows of the bevel.

 property double LightAngle { double get(); void set(double value); };
public double LightAngle { get; set; }
member this.LightAngle : double with get, set
Public Property LightAngle As Double



虚拟光源的方向。The direction of the virtual light source. 有效范围是 0-360(度),0 表示对象的右侧,连续值围绕对象逆时针移动。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 shadows of the bevel are on the opposite side of where the light is cast. 默认值为 135The default value is 135.


下图显示了此属性给定值的光线方向。The following diagram shows what direction light comes from for a given value of this property. 棱台的阴影是从光角度的另一侧进行转换的。Shadows of the bevel are cast on the opposite side from the light angle.

示意图:DropShadow 方向Diagram: DropShadow direction

下图演示了此属性的效果:The following illustration demonstrates the effect of this property:

屏幕快照:比较光的角度Screenshot: Compare light angles

依赖项属性信息Dependency Property Information

标识符字段Identifier field LightAngleProperty
元数据属性设置为 trueMetadata properties set to true None