Sur cette page

CanvasPixelArray QML Type

Permet un accès ordonné et indexé aux composants de chaque pixel des données d'image. En savoir plus...

Import Statement: import QtQuick

Propriétés

Description détaillée

L'objet CanvasPixelArray permet un accès ordonné et indexé aux composantes de couleur de chaque pixel des données d'image. Le CanvasPixelArray est accessible comme un tableau JavaScript classique.

Voir également CanvasImageData et la norme W3C relative au contexte 2D pour PixelArray.

Documentation sur les propriétés

length : int

L'objet « CanvasPixelArray » représente h × w × 4 entiers, où 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.