Beispiel #1
0
 /// <summary>
 /// Set a pixel at a given point to the give color
 /// </summary>
 /// <param name="x">X coordinate</param>
 /// <param name="y">Y coordinate</param>
 /// <param name="color">Color in hex</param>
 public void SetPixel(uint x, uint y, uint color)
 {
     uint where = x * ((uint)ScreenBpp / 8) + y * (uint)(ScreenWidth * ((uint)ScreenBpp / 8));
     _vbe.set_vram(where, (byte)(color & 255));              // BLUE
     _vbe.set_vram(where + 1, (byte)((color >> 8) & 255));   // GREEN
     _vbe.set_vram(where + 2, (byte)((color >> 16) & 255));  // RED
 }
Beispiel #2
0
 public void SetBuffer(byte[] Buffer)
 {
     _vbe.set_vram(Buffer);
 }