PixmapFragment Class
class QPainter::PixmapFragmentこのクラスはQPainter::drawPixmapFragments() 関数と組み合わせて使用し、 pixmap または pixmap のサブレクトの描画方法を指定します。詳細...
パブリック変数
qreal | height |
qreal | opacity |
qreal | rotation |
qreal | scaleX |
qreal | scaleY |
qreal | sourceLeft |
qreal | sourceTop |
qreal | width |
qreal | x |
qreal | y |
静的パブリックメンバ
QPainter::PixmapFragment | create(const QPointF &pos, const QRectF &sourceRect, qreal scaleX = 1, qreal scaleY = 1, qreal rotation = 0, qreal opacity = 1) |
詳細説明
sourceLeft,sourceTop,width およびheight 変数は、QPainter::drawPixmapFragments() 関数に渡される pixmap 内のソース矩形として使用されます。x,y,width およびheight 変数は、描画されるターゲット矩形を計算するために使用されます。x およびy は、ターゲット矩形の中心を表します。ターゲッ ト矩形内のwidth とheight は、scaleX とscaleY の値でスケーリングされます。その結果、ターゲット矩形はx,y の中心点を中心にrotation 度回転します。
QPainter::drawPixmapFragments()も参照 。
メンバ関数ドキュメント
[static]
QPainter::PixmapFragment PixmapFragment::create(const QPointF &pos, const QRectF &sourceRect, qreal scaleX = 1, qreal scaleY = 1, qreal rotation = 0, qreal opacity = 1)
pos,sourceRect,scaleX,scaleY,rotation,opacity パラメータで初期化されたQPainter::PixmapFragment を返す便利な関数です。
メンバ変数ドキュメント
qreal PixmapFragment::height
この変数はソース矩形の高さを保持し、ターゲット矩形の高さを計算するために使用される。
qreal PixmapFragment::opacity
この変数はターゲット矩形の不透明度を保持し、0.0は完全に透明、1.0は完全に不透明である。
qreal PixmapFragment::rotation
この変数は、ターゲット矩形の回転を度単位で保持する。ターゲット矩形はスケーリングされた後に回転される。
qreal PixmapFragment::scaleX
この変数はターゲット矩形の水平スケールを保持する。
qreal PixmapFragment::scaleY
この変数はターゲット矩形の垂直スケールを保持する。
qreal PixmapFragment::sourceLeft
この変数はソース矩形の左座標を保持する。
qreal PixmapFragment::sourceTop
この変数はソース矩形の上端座標を保持する。
qreal PixmapFragment::width
この変数は、ソース矩形の幅を保持し、ターゲット矩形の幅を計算するために使用される。
qreal PixmapFragment::x
この変数は、ターゲット矩形の中心点のx座標を保持する。
qreal PixmapFragment::y
この変数は、ターゲット矩形の中心点のy座標を保持する。
© 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.