WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
PixelData.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
6 
7 namespace DirectOutput.General.BitmapHandling
8 {
12  public struct PixelData
13  {
14  //TODO: Check order of bytes!
15 
16  //Attention!
17  //The order of bytes is important. Dont change this without beeing sure that this will yield the desired results.
18  public byte Blue;
19  public byte Green;
20  public byte Red;
21  public byte Alpha;
22 
23 
24 
26  {
27  return new RGBAColor(Red, Green, Blue, Alpha);
28  }
29 
30 
31  public PixelData(byte Red, byte Green, byte Blue, byte Alpha)
32  {
33  this.Red = Red;
34  this.Green = Green;
35  this.Blue = Blue;
36  this.Alpha = Alpha;
37  }
38 
39  }
40 }
This class stores information on colors used for toys and effects (e.g. RGBLed).
Definition: RGBAColor.cs:14
Struct holding the data for a single pixel in a bitmap.
Definition: PixelData.cs:12
PixelData(byte Red, byte Green, byte Blue, byte Alpha)
Definition: PixelData.cs:31
The namespace DirectOutput.General contains classes for general use.