DirectOuput Framework R2
DirectOutput framework R2 for virtual pinball cabinets
Go to:
Overview 
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
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;
5 using DirectOutput.General.Color;
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 wield yield the desired results.
18  public byte Blue;
19  public byte Green;
20  public byte Red;
21  public byte Alpha;
22 
23 
24 
25  public RGBAColor GetRGBAColor()
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 }