CanvasImageData QML Type
包含按 RGBA 顺序排列的图像像素数据。更多...
| Import Statement: | import QtQuick |
属性
详细说明
CanvasImageData 对象存储图像的像素数据。
CanvasImageData 对象包含该对象中存储数据的实际尺寸,并保存一个一维数组,其中数据按 RGBA 顺序存储,以 0 到 255 范围内的整数表示。
另请参阅 width 、height 、data 、Context2D::createImageData()、Context2D::getImageData() 和Context2D::putImageData()。
属性文档
data : CanvasPixelArray
存储按 RGBA 顺序排列的数据的一维数组,数据以 0 到 255 范围内的整数形式表示。
height : int
存储 ImageData 对象中数据的实际高度尺寸(以设备像素为单位)。
width : int
存储 ImageData 对象中数据的实际宽度尺寸,单位为设备像素。
© 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.