public int GetPixel(int x, int y) { int offset = (int)(FBBASE + (y * m_pInfo.Width * 3 + x * 3)); byte r = MemoryMap.Read8(offset + 0); byte g = MemoryMap.Read8(offset + 1); byte b = MemoryMap.Read8(offset + 2); return(((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff)); }