Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. int i = 0;
  2. foreach (var item in list)
  3. {
  4. Bitmap bmp = new Bitmap(32, 32);
  5. BitmapData bData = bmp.LockBits(new Rectangle(new Point(), bmp.Size), ImageLockMode.WriteOnly,
  6. PixelFormat.Format1bppIndexed);
  7. Marshal.Copy(item.bytes, 0, bData.Scan0, item.bytes.Length);
  8. bmp.UnlockBits(bData);
  9. i++;
  10. bmp.Save("C:\rr\r" + i + ".bmp");
  11. bmp.Dispose();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement