Buffered images

BlitzMax Modules Forums/Brucey's Modules/Buffered images

For my purpose it is fast enough. The Oscilloscope and Autocorrelogram is drawn in fullscreen(~1600 x 1050) in realtime. For things like CAD(e.g. AutoCAD) or typeface editors(e.g. Fontlab) I would use Cairo or OpenVG that supports antialiasing.

But a idea to antialiasing:
Using supersampling. You render the GDI output in a double sized buffer and on the paint event, you use a bilinear filter to fit the buffer in the original size. On things that should not filtered, like images, you can use a mask for the buffer and the regions that not have set a bit would filtered by pointsampling. Also GDI supports a user zoom for very handy zooming.

To flickering:
I also have flickering :( The complete graphic is drawn in a backbuffer but the backbuffer is drawn pixel by pixel in the gadget. To avoid this I must use BufferedDC or AutoBufferedDC.

Here is the result


I love your wxWidget module, it is sooo cool :)

cu olli