summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptengine.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-04-14 19:38:45 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2011-05-12 07:40:08 (GMT)
commit37c329a3e35fabc88fbcad824a69f37c671d2132 (patch)
tree1243d8f2d12564dc43681b37b55d33128d88e0e3 /doc/src/snippets/code/src_script_qscriptengine.cpp
parentc5846314dfd80e7f7f32ba737f1884dcccbbd80d (diff)
downloadQt-37c329a3e35fabc88fbcad824a69f37c671d2132.zip
Qt-37c329a3e35fabc88fbcad824a69f37c671d2132.tar.gz
Qt-37c329a3e35fabc88fbcad824a69f37c671d2132.tar.bz2
New algorithm for drawing thin lines
Added a new QCosmeticStroker class for drawing thin lines. The class can handle both aliased and antialiased lines. The code replaces all the midpoint line drawing algorithms in the raster paintengine and gives correct subpixel positioning for lines. It gives around 30% to 50% speedup against the midpoint algorithm. If we missed that fast path, the speedup is around between a factor of 6 to 8 for lines and aliased paths and 100 and 400 for antialiased paths. Reviewed-by: Kim
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengine.cpp')
0 files changed, 0 insertions, 0 deletions