[Qt-interest] fastest way to draw everchanging pixels
Brad Howes
howes at ll.mit.edu
Mon Mar 23 17:24:47 CET 2009
On Mar 23, 2009, at 11:26 AM, Oliver.Knoll at comit.ch wrote:
> Still, I would like to give you another approach which is still
> pixel-based and similar to your approach. But instead of callling a
> method for (potentially) each pixel, you do your own address
> arithmetic and calculate the pixel values. The basic idea is that
> you first draw into a QImage which gives you direct pixel access,
> using some easy pointer arithmetic, and then let the QPainter draw
> this QImage (which will automatically be converted to a QPixmap for
> fast drawing).
That was my first thought as well. I too would be interested in
learning about any timing results people may have WRT the two
approaches.
Brad
--
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
More information about the Qt-interest-old
mailing list