changeset 27 | ee1305f3a6bf |
parent 26 | df50d7cb4dd0 |
1.1 --- a/src/test.cpp Sat May 24 09:24:40 2014 +0200 1.2 +++ b/src/test.cpp Tue May 27 17:49:33 2014 +0200 1.3 @@ -797,7 +797,11 @@ 1.4 for (int j=0;j<h;j++) 1.5 { 1.6 FXColor color=iFontImage->getPixel(i,j); 1.7 - if (color!=0xffffffff) 1.8 + int green=FXGREENVAL(color); 1.9 + int red=FXREDVAL(color); 1.10 + int blue=FXBLUEVAL(color); 1.11 + if ((green+red+blue)/3<220) 1.12 + //if (color!=0xffffffff) 1.13 { 1.14 iPixelBuffer->SetBit(i*h+j); 1.15 }