2011/6/3 Bjørn Forsman <[email protected]>: > 2011/5/27 Bjørn Forsman <[email protected]>: >> Hi Koen, Wim, all, >> >> I wonder if I hit a bug in src/Wt/WPainter.C: >> >> void WPainter::drawPoint(double x, double y) >> { >> drawLine(x - 0.05, y - 0.05, x + 0.05, y + 0.05); >> } >> >> With pixel offset 0.05 to each side no full pixel is drawn. Draw a >> rectangle with drawPoint() and you will see that it doesn't paint the >> canvas with the specified color (I only tried it with HtmlCanvas). It >> will never reach full intensity of either of the RGB colors: black >> turns grey, red becomes a mix of red and white and so on... >> >> If the pixel offsets are set to 0.5 everything works just fine, >> because then each point has the size of one pixel (no gaps in >> between). If you agree with the fix, could you apply it to the git >> tree? > > Still no comments? I'm pretty sure this is a bug and it's easily fixed :-)
Hm, still no response. Is noone drawing single pixels with Wt? It's just a one line patch: -drawLine(x - 0.05, y - 0.05, x + 0.05, y + 0.05); +drawLine(x - 0.5, y - 0.5, x + 0.5, y + 0.5); Can someone with write access to the git repo please take action? :-) Best regards, Bjørn Forsman ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
