Yes, this is currently horribly slow because the whole bitmap is copied on every setPixel() call; Bitmap::updatedData() copies the data into style.bitmap. The copy can be avoided if Bitmap and BitmapData share the same pixel array (which is the whole point of BitmapData class anyway).
Yes, this is currently horribly slow because the whole bitmap is copied on every setPixel() call; Bitmap: :updatedData( ) copies the data into style.bitmap. The copy can be avoided if Bitmap and BitmapData share the same pixel array (which is the whole point of BitmapData class anyway).