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 :-)

Best regards,
Bjørn Forsman

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to