Sur cette page

CanvasPixelArray QML Type

Fournit un accès ordonné et indexé aux composants de chaque pixel dans les données d'image. Plus d'informations...

Import Statement: import QtQuick

Propriétés

Description détaillée

L'objet CanvasPixelArray fournit un accès ordonné et indexé aux composantes de couleur de chaque pixel des données de l'image. On peut accéder au tableau CanvasPixelArray comme à un tableau Javascript normal.

Voir également CanvasImageData et la norme de contexte 2d du W3C pour PixelArray.

Documentation sur les propriétés

length : int

L'objet CanvasPixelArray représente des nombres entiers h×w×4 dont w et h proviennent de CanvasImageData. L'attribut length d'un objet CanvasPixelArray doit renvoyer cette valeur numérique h×w×4. Cette propriété est en lecture seule.

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