이 페이지에서

imagepattern2d QML Value Type

QCanvasImagePattern 에 대한 imagepattern2d 유형 매칭을 제공합니다. 더 보기...

Import Statement: import QtCanvas2D
Since: Qt 6.12
Status: Technology preview

이 유형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.

메서드

상세 설명

이 값 유형은 ` QtCanvas2D ` 임포트에서 제공됩니다.

QCanvasImagePattern도 참조하십시오 .

메서드 문서

size imageSize()

pattern에 포함된 단일 이미지의 크기를 반환합니다.

setImageSize()도 참조하십시오 .

real rotation()

패턴의 회전 각도를 라디안 단위로 반환합니다.

setRotation()도 참조하십시오 .

void setImageSize(real width, real height)

패턴 내의 단일 이미지 크기를 ( width, height)로 설정합니다.

imageSize()도 참조하십시오 .

void setImageSize(size imageSize)

pattern에 포함된 개별 이미지의 크기를 imageSize 로 설정합니다.

이 함수는 오버로드된 함수입니다.

void setRotation(real rotation)

패턴 회전 각도를 라디안 단위로 rotation 로 설정합니다. 회전은 이미지 startPosition()를 중심으로 이루어집니다. 기본값은 0.0 이며, 이는 이미지가 회전되지 않음을 의미합니다.

rotation()도 참조하십시오 .

void setStartPosition(real x, real y)

이미지 패턴의 시작점을 (x, y)로 설정합니다. 시작 위치는 패턴 내 이미지의 왼쪽 상단 모서리를 의미합니다. 이후 패턴은 이 지점을 기준으로 모든 위치로 확장됩니다(이미지 Repeat 플래그가 설정된 경우).

startPosition()도 참조하십시오 .

void setStartPosition(point start)

이미지 패턴의 시작점을 start 로 설정합니다. 시작 위치는 패턴 내 이미지의 왼쪽 상단 모서리를 의미합니다. 이후 패턴은 이 지점을 기준으로 모든 위치로 확장됩니다(이미지 Repeat 플래그가 설정된 경우).

이 함수는 오버로드된 함수입니다.

void setTintColor(color tintColor)

패턴의 틴트 색상을 tintColor 로 설정합니다. 셰이더에서 패턴 이미지의 색상에 이 틴트 색상이 곱해집니다. 기본값은 흰색이며, 이는 틴트 처리가 없음을 의미합니다.

참고: 알파를 전역적으로 설정하려면 QCanvasPainter::setGlobalAlpha()을 사용하십시오.

참조: tintColor().

point startPosition()

이미지 패턴의 시작점을 반환합니다.

setStartPosition()도 참조하십시오 .

color tintColor()

패턴의 색조를 반환합니다.

setTintColor()도 참조하십시오 .

© 2026 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.