CanvasPixelArray QML Type
Oferece acesso ordenado e indexado aos componentes de cada pixel nos dados da imagem. Mais...
| Import Statement: | import QtQuick |
Propriedades
- length : int
Descrição detalhada
O objeto CanvasPixelArray fornece acesso ordenado e indexado aos componentes de cor de cada pixel dos dados da imagem. O CanvasPixelArray pode ser acessado como um array normal do JavaScript.
Veja também CanvasImageData e o padrão de contexto 2D do W3C para PixelArray.
Documentação das propriedades
length : int
O objeto ` CanvasPixelArray ` representa h×w×4 números inteiros, sendo que w e h são obtidos a partir de ` CanvasImageData`. O atributo `length` de um objeto ` CanvasPixelArray ` deve retornar esse valor numérico h×w×4. Essa propriedade é somente de leitura.
© 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.