/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public Bitmap GenerateNoise(int width, int height) { for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { int num = r.Next(0, 256); finalBmp.SetPixel(x, y, Color.FromArgb(255, num, num, num)); } } return finalBmp; }
URL: http://www.vcskicks.com/image-noise.php
Comments
