Generate white noise image in C#
White Noise is not black or white (per definition). It contains also grayscales.
So we are already closer with:
foreach(var pixel in image)
{
//do that for all RGB (depending on Image format)
pixel = rand() * 255;
}
Should be something very simple along these lines, no?
foreach(var pixel in image)
{
pixel = rand()>0.5 ? white : black;
}