이 페이지에서

CanvasPixelArray QML Type

이미지 데이터 내 각 픽셀의 구성 요소에 대해 순서대로 정렬되고 인덱싱된 방식으로 접근할 수 있게 해줍니다. 더 보기...

Import Statement: import QtQuick

속성

상세 설명

CanvasPixelArray 객체는 이미지 데이터의 각 픽셀에 대한 색상 구성 요소에 순서대로 인덱스를 사용하여 접근할 수 있게 해줍니다. CanvasPixelArray는 일반 자바스크립트 배열처럼 사용할 수 있습니다.

CanvasImageData 및 PixelArray에 대한 W3C 2D 컨텍스트 표준도 참조하십시오 .

속성 설명

length : int

CanvasPixelArray 객체는 h×w×4개의 정수를 나타내며, 여기서 w와 h는 CanvasImageData 에서 비롯됩니다. CanvasPixelArray 객체의 length 속성은 반드시 이 h×w×4 값을 반환해야 합니다. 이 속성은 읽기 전용입니다.

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