BitmapData#getPixels()

getPixels(rect) → {ImageData}

Gets all the pixels from the region specified by the given Rectangle object.

Parameters
Name Type Description
rect Phaser.Rectangle

The Rectangle region to get.

Returns
ImageData -

Returns a ImageData object containing a Uint8ClampedArray data property.

Source code: gameobjects/BitmapData.js (Line 1055)
doc_phaser
2017-02-14 10:37:04
Comments
Leave a Comment

Please login to continue.