En esta página

CanvasPixelArray QML Type

Proporciona un acceso ordenado e indexado a los componentes de cada píxel de los datos de la imagen. Más...

Import Statement: import QtQuick

Propiedades

Descripción detallada

El objeto CanvasPixelArray proporciona un acceso ordenado e indexado a los componentes de color de cada píxel de los datos de la imagen. Se puede acceder a CanvasPixelArray como si fuera una matriz normal de JavaScript.

Véase también CanvasImageData y el estándar de contexto 2D del W3C para PixelArray.

Documentación de propiedades

length : int

El objeto ` CanvasPixelArray ` representa un conjunto de h × w × 4 números enteros, donde w y h proceden de ` CanvasImageData`. El atributo «length» de un objeto ` CanvasPixelArray ` debe devolver este valor numérico de h × w × 4. Esta propiedad es de solo lectura.

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