ImageEn, unit imageenproc |
|
TImageEnProc.Random
Declaration
procedure Random(mean: Double = 0.5; stdDev: Double = 0.123);
Description
Fill the selected pixels with random values (Gaussian distribution).
Random values are mutiplied by 255 and truncated to be in the range 0 to 255.
Parameter | Description |
mean | Mean value. 0.5 = gray (128) |
stdDev | Standard deviation about mean |
Note: If the image
PixelFormat is not one of ie1g, ie8g, ie24RGB, it will be converted
| Demos\ImageEditing\EveryMethod\EveryMethod.dpr |
// Fill with pixels of random values (Gaussian distribution)
ImageEnView1.Proc.Random();