CanvasPixelArray QML Type

提供对图像数据中每个像素成分的有序和索引访问。更多

Import Statement: import QtQuick

属性

详细说明

CanvasPixelArray 对象提供对图像数据中每个像素的颜色成分的有序索引访问。CanvasPixelArray 可以像普通的 Javascript 数组一样进行访问。

另请参阅 CanvasImageDataW3C 2d 上下文标准中的 PixelArray

属性文档

length : int

CanvasPixelArray 对象表示 h×w×4 整数,其中 w 和 h 来自CanvasImageDataCanvasPixelArray 对象的 length 属性必须返回此 h×w×4 数值。此属性只读。


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