}
RgbImage rgbImage = new RgbImage(
this.rgbInput.getWidth(),
this.rgbInput.getHeight());
for (Enumeration e = this.vecROk.elements(); e.hasMoreElements();) {
RgbRegion r = (RgbRegion) e.nextElement();
int nRgb = RgbVal.toRgb(
(byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE),
(byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE),
(byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE));
Rect rect = r.getRect();
rgbImage = rgbImage.fill(rect, nRgb);
}
return rgbImage;
}