Skip to content

Commit d412431

Browse files
committed
Add extra information for the imageData property.
1 parent aaeb45e commit d412431

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/BitmapData.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Phaser.BitmapData = function (game, key, width, height) {
6060

6161
/**
6262
* @property {ImageData} imageData - The context image data.
63+
* Please note that a call to BitmapData.draw() or BitmapData.copy() does not update immediately this property for performance reason. Use BitmapData.update() to do so.
64+
* This property is updated automatically after the first game loop, according to the dirty flag property initially set on an instance of BitmapData.
6365
*/
6466
this.imageData = this.context.getImageData(0, 0, width, height);
6567

0 commit comments

Comments
 (0)