Prev: Opening an explorer window
Next: wxBitmap scaling
From: Andy Wittmann on 6 Sep 2009 04:25 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
From: Vadim Zeitlin on 10 Sep 2009 11:08 On 2009-09-06, Andy Wittmann <andy_x86(a)gmx.net> wrote: > 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/
|
Pages: 1 Prev: Opening an explorer window Next: wxBitmap scaling |