summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-08-21 13:54:07 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-27 16:03:11 +0200
commit5971e0918757737425151c39a5f81a238663a17a (patch)
tree07406f67de30aa5e9a41e4110564c73e73aa7d07 /examples
parentf3a53eae80bda8bb9364e5caa6b0e1cf0dd9ce87 (diff)
Use custom class for storing distance fields instead of QImage.
Distance fields are stored using a one-byte alpha component per pixel, a format that QImage doesn't currently support. The Indexed8 format was used instead, limiting what could be done with the QImage. This patch introduces a new private class, QDistanceField, with a similar API to QImage and using the Alpha8 pixel format. Unlike QImage which aligns scanlines on a 4-byte boundary, QDistanceField tightly packs scanlines together. Task-number: QTBUG-30908 Task-number: QTBUG-32861 Change-Id: Ic273259ea07dfbd2b81a6358c0ca11a2330eb749 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions