このページでは

CanvasPixelArray QML Type

画像データ内の各ピクセルの構成要素に対して、順序付きかつインデックス付きのアクセスを提供します。詳細...

Import Statement: import QtQuick

プロパティ

詳細な説明

CanvasPixelArray オブジェクトは、画像データの各ピクセルの色成分に対して、順序付きかつインデックスによるアクセスを提供します。CanvasPixelArray には、通常の JavaScript 配列と同様にアクセスできます。

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.