Click or drag to resize
DigitalRuneD3DImagePresentationTargetEnableAlpha Property
Gets or sets a value indicating whether a render target with an alpha channel is created. This is a dependency property.

Namespace: DigitalRune.Graphics.Interop
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public bool EnableAlpha { get; set; }

Property Value

Type: Boolean
The a value indicating whether a render target with an alpha channel is created. The default value is .
Remarks

An alpha channel is required for transparency effects. If EnableAlpha is , the 3D image is opaque and overwrites any WPF elements in the background. If EnableAlpha is , the 3D image can contain transparent pixels. Transparent parts are blended with other WPF elements in the background.

Changing this property invalidates the content and the 3D image needs to be re-rendered.

Important: WPF requires premultiplied alpha, which means that the color values in the 3D image needs to be multiplied by the alpha value!

See Also