WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
AnalogAlpha.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace DirectOutput.General.Analog
7 {
11  public class AnalogAlpha
12  {
16  public int Value;
20  public int Alpha;
21 
22 
27  public AnalogAlpha Clone()
28  {
29  return new AnalogAlpha(Value, Alpha);
30  }
31 
37  public void Set(int Value, int Alpha)
38  {
39  this.Value = Value;
40  this.Alpha = Alpha;
41  }
42 
48  public void Set(int Value)
49  {
50  this.Value = Value;
51  this.Alpha = (Value != 0 ? 255 : 0);
52  }
53 
59  public AnalogAlpha(int Value, int Alpha)
60  {
61  this.Value = Value;
62  this.Alpha = Alpha;
63  }
64 
70  public AnalogAlpha(int Value)
71  {
72  this.Value = Value;
73  this.Alpha = (Value != 0 ? 255 : 0);
74  }
75 
79  public AnalogAlpha() { }
80 
81  }
82 }
AnalogAlpha()
Initializes a new instance of the AnalogAlpha class.
Definition: AnalogAlpha.cs:79
int Value
The analog value (0-255).
Definition: AnalogAlpha.cs:16
AnalogAlpha Clone()
Clones this instance.
Definition: AnalogAlpha.cs:27
AnalogAlpha(int Value, int Alpha)
Initializes a new instance of the AnalogAlpha class.
Definition: AnalogAlpha.cs:59
void Set(int Value)
Sets the analog value. If Value is 0, the alpha value will be set to 0, otherwise it will be set to ...
Definition: AnalogAlpha.cs:48
Object containing a analog value (0-255) and a alpha value (0-255).
Definition: AnalogAlpha.cs:11
int Alpha
The alpha value (0-255).
Definition: AnalogAlpha.cs:20
AnalogAlpha(int Value)
Initializes a new instance of the AnalogAlpha class. If Value is 0, the alpha value will be set to 0...
Definition: AnalogAlpha.cs:70
void Set(int Value, int Alpha)
Sets the specified values.
Definition: AnalogAlpha.cs:37