The following members of QML type Canvas 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
(obsolete)
|
canvasWindow : rect |
Holds the current canvas visible window.
By default the canvasWindow size is the same as the Canvas item size with the top-left point as (0, 0).
若 canvasSize is different to the Canvas item size, the Canvas item can display different visible areas by changing the canvas windowSize and/or position.
另請參閱 canvasSize and tileSize .
Holds the canvas rendering tile size.
The Canvas item enters tiled mode by setting canvasSize , tileSize and the canvasWindow . This can improve rendering performance by rendering and caching tiles instead of rendering the whole canvas every time.
Memory will be consumed only by those tiles within the current visible region.
By default the tileSize is the same as the canvasSize .
另請參閱 canvasSize and canvasWindow .