Discussion:
Fast pixel operations, wxDC, wx-sdl
(too old to reply)
Andy Wittmann
2009-09-06 08:25:54 UTC
Permalink
Hello NG!

For some graphical output of a wxWidgets based application i'll need a
fast way to set pixels (without opengl!) on a wxPanel.

Using a Device Context work's fine but Google said that there's maybe a
faster solution which is called wx-sdl.

So i have tried wx-sdl. Created a SDL-Surface, draw on it, do some RGB
<-> BGR conversion, create a wxBitmap and display it via a
wxDC. Performance stats are both equal (nearly) but i don't like the
conversion overhead.

My question: Are there any other faster ways to draw some pixels on a
wx-control? Portability is important and direct-access through direct-x
(or gtk) is no option.

Thanks,
Andy
Vadim Zeitlin
2009-09-10 15:08:51 UTC
Permalink
Post by Andy Wittmann
My question: Are there any other faster ways to draw some pixels on a
wx-control?
Yes, see classes in wx/rawbmp.h and an example of their use in
samples/image.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...