[HTML5] Render Tile to Bitmap


I tried to render a Tile (set on a TileMap, obviously) to a Bitmap by creating a BitmapData and drawing the TileMap upon it, but I obtained a white square: is this the right way to render a tile to Bitmap?



There could be a bug here, does it work when you try it on Flash?


Well, I have tried the same procedure in a small project and it works (in HTML5), I don’t think there is a bug in Openfl/Lime, appearantly. I’m looking back into the big project to see what’s wrong.

EDIT: BitmapData fillColor was set to default 0xffffffff … :flushed::sweat_smile::exploding_head:

…and maybe in the previous test I used wrong coordinates for the tile.