private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.Close(); } else if (e.KeyCode == Keys.F1) { if (T != null) { T = TGA.FromBytes(T.ToBytes()); ShowTga(); } } }
public Bitmap TgaSharpLib() => TGA.FromBytes(data).ToBitmap();