CanvasImageData QML Type

包含按 RGBA 排序的图像像素数据。更多

Import Statement: import QtQuick

属性

详细说明

CanvasImageData 对象保存图像像素数据。

CanvasImageData 对象具有存储在此对象中的数据的实际尺寸,并持有包含按 RGBA 顺序排列的数据的一维数组,数据为 0 至 255 范围内的整数。

另请参阅 width,height,data,Context2D::createImageData(),Context2D::getImageData() 和Context2D::putImageData() 。

属性文档

data : object

一维数组,包含按 RGBA 顺序排列的数据,范围为 0 至 255 之间的整数。


height : int

保存 ImageData 对象中数据的实际高度尺寸,单位为设备像素。


width : int

保存 ImageData 对象中数据的实际宽度尺寸(设备像素)。


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