Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string savepath = "";
- string filename = "";
- int width = 0;
- int height = 0;
- Bitmap img;
- void createimg() {
- width = numericupdown1.Value;
- height= numericupdown2.Value;
- img = new Bitmap(width, height);
- }
- void erase_but_Click(object sender, EventArgs e) {
- img.MakeTransperent(Color.White);
- }
- void save_but_Click(object sender, EventArgs e) {
- bmp1.Save(savepath + filename + ".gif", System.Drawing.Imaging.ImageFormat.Gif);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement