195
198
vb /= (double)sum_weight;
197
200
for (x = 0; x < hp.width(); ++x)
198
202
for (y = 0; y < hp.height(); ++y)
199
204
if (validPoint(img,QPoint(xPos+x,yPos+y)))
201
206
int alpha = sixtBits ? 65535 : 255;
202
207
int ir = (int )round(vr), ig = (int) round(vg), ib = (int) round(vb);
203
208
img.setPixelColor(xPos+x,yPos+y,Digikam::DColor(ir,ig,ib,alpha,sixtBits));