Advertisement
Guest User

UPArt

a guest
Feb 20th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. string savepath = "";
  2. string filename = "";
  3.  
  4. int width = 0;
  5. int height = 0;
  6.  
  7. Bitmap img;
  8.  
  9. void createimg() {
  10.     width = numericupdown1.Value;
  11.     height= numericupdown2.Value;
  12.  
  13.     img = new Bitmap(width, height);
  14. }
  15.  
  16. void erase_but_Click(object sender, EventArgs e) {
  17.     img.MakeTransperent(Color.White);
  18. }
  19.  
  20. void save_but_Click(object sender, EventArgs e) {
  21.     bmp1.Save(savepath + filename + ".gif", System.Drawing.Imaging.ImageFormat.Gif);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement