using SharpTools; using System; using System.Drawing; using System.Windows.Forms; namespace PPUPlayer { public partial class FormColorSpace : Form { public FormColorSpace(string ppu_rev) { InitializeComponent(); this.Text += " - " + ppu_rev; } private void FormColorSpace_Load(object sender, EventArgs e) { pictureBox1.Image = RenderColorSpace(); } private void FormColorSpace_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { Close(); } } Bitmap RenderColorSpace() { int emphasisBands = 8; int colorsPerLine = 16; int colorLines = 4; int colorWidth = 128; int colorHeight = 32; int w = colorsPerLine * colorWidth; int h = emphasisBands * colorLines * colorHeight; Bitmap pic = new Bitmap(w, h, System.Drawing.Imaging.PixelFormat.Format32bppArgb); for (int band=0; band