アフィン変換

QPainter におけるアフィン変換がどのように機能するかを示します。

変換は、QPainter を使用して描画されたあらゆる種類のグラフィックに対して実行できます。ベクターグラフィック、画像、テキストの表示に使用される変換は、以下の方法で調整できます:

  • 各図面の中心にある赤い円をドラッグすると、新しい位置に移動します。
  • ずれた赤い円をドラッグすると、現在の図面が中央の円を中心に回転します。回転はRotate スライダーでもコントロールできます。
  • 拡大縮小はScale スライダーでコントロールします。
  • 各描画はShear スライダーでシアを調整できます。

プロジェクト例 @ code.qt.io

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.