DirectOutputR1
DirectOutput framework R1 for virtual pinball cabinets.
Go to:
Overview 
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
AlphaMappingTable.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.Cab.Toys.Layer
7 {
11  public static class AlphaMappingTable
12  {
16  public static float[,] AlphaMapping = new float[256, 256];
17 
18 
19  static AlphaMappingTable()
20  {
21  for (int A = 0; A < 256; A++)
22  {
23  for (int V = 0; V < 256; V++)
24  {
25  AlphaMapping[A, V] = (float)((double)V / 255 * (double)A);
26  }
27  }
28 
29  }
30  }
31 }