[wx 2.6.3, WinXP, VC6] wxDC::DrawLine
Vadim Zeitlin
vadim at wxwindows.org
Fri May 18 06:21:09 PDT 2007
On Wed, 16 May 2007 20:30:52 -0700 Joe Stanton <joe at bravenewsoftware.com> wrote:
JS> A diagonal line drawn can produce gaps which paint can
JS> leak through. Is there a fix planned for this?
JS>
JS> dc.DrawLine(0,0,510,511);
No, there is nothing we can do about it (short of implementing line
drawing ourselves which would be slower, just as you discovered) because
DrawLine() just uses the native API for drawing. You can try using
wxGraphicsContext (2.8 only) which uses the "next generation" graphics API
(e.g. GDI+ under Win32, Cairo under X11 &c) as it might not suffer from
this problem. It could be slower as well though.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list