private void injectToolStripMenuItem1_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { PartyBlam.Blam.Reach.ScreenShot sShot = new PartyBlam.Blam.Reach.ScreenShot(ofd.FileName); File.WriteAllBytes(@"C:/Users/Alex/Desktop/test_1.jpg", sShot.ExtractScreenshot()); sShot.Close(); } }
private void extractToolStripMenuItem1_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { PartyBlam.Blam.Reach.ScreenShot sShot = new PartyBlam.Blam.Reach.ScreenShot(ofd.FileName); OpenFileDialog oofd = new OpenFileDialog(); if (oofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { //sShot.InjectScreenshot(File.ReadAllBytes(oofd.FileName)); sShot.Update(); } sShot.Close(); } }