PixmapFragment Class

class QPainter::PixmapFragment

이 클래스는 QPainter::drawPixmapFragments() 함수와 함께 사용하여 픽셀맵 또는 픽셀맵의 하위 렉을 그리는 방법을 지정합니다. 더 보기...

공용 변수

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, widthheight 변수는 QPainter::drawPixmapFragments() 함수에 전달된 픽셀맵 내에서 소스 사각형으로 사용됩니다. x , y, widthheight 변수는 그려질 대상 사각형을 계산하는 데 사용됩니다. xy 변수는 대상 사각형의 중심을 나타냅니다. 대상 사각형의 widthheightscaleXscaleY 값에 따라 크기가 조정됩니다. 그런 다음 결과 대상 사각형은 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.