Class AnaglyphEffect
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Provides an anaglyph blending effect.
public sealed class AnaglyphEffect : ShaderEffect, IAnimatable
- Inheritance
-
AnaglyphEffect
- Implements
- Inherited Members
- Extension Methods
Remarks
Usage:
- Add the effect to the LEFT EYE UIElement.
- Set RightInput to a VisualBrush of the RIGHT EYE UIElement. See the AnaglyphView3D for an example.
Constructors
AnaglyphEffect()
Initializes a new instance of the AnaglyphEffect class.
public AnaglyphEffect()
Fields
LeftInputProperty
Identifies the LeftInput dependency property.
public static readonly DependencyProperty LeftInputProperty
Field Value
MethodProperty
Identifies the Method dependency property.
public static readonly DependencyProperty MethodProperty
Field Value
RightInputProperty
Identifies the RightInput dependency property.
public static readonly DependencyProperty RightInputProperty
Field Value
Properties
LeftInput
Gets or sets the left input brush.
public Brush LeftInput { get; set; }
Property Value
- Brush
The left input.
Method
Gets or sets the anaglyph method.
public AnaglyphMethod Method { get; set; }
Property Value
- AnaglyphMethod
The method.
Offset
Gets or sets the horizontal offset.
public float Offset { get; set; }
Property Value
RightInput
Gets or sets the right input brush.
public Brush RightInput { get; set; }
Property Value
- Brush
The right input.