13 template <
typename TPIXEL,
typename TCHANNEL>
19 if (retVal->
getData() == NULL) {
27 TPIXEL maxVal = retVal->
maxVal;
32 double r = size / 2.0;
33 double rFull = r * hardness;
35 double rFull2 = rFull * rFull;
36 double factor = maxVal / (r - rFull);
37 double minX = -r + 0.5;
38 double minY = -r + 0.5;
45 TPIXEL * ptrEnd = (TPIXEL *) area.
getAreaEnd();
48 while (ptr < ptrEnd) {
50 while(ptr < ptrRowEnd) {
51 double rr2 = x * x + y * y;
54 }
else if (rr2 < r2) {
55 *ptr = factor * (r - sqrt(rr2)) + 0.5;
63 ptrRowEnd += ptrWidth;
68 template <
typename TPIXEL,
typename TCHANNEL>