Skip to main content

DevBytes: BitmapAllocation

This example shows how to speed up bitmap loading and reduce garbage collection by reusing existing bitmaps.



Note that the reused bitmap must be mutable and of the same size and configuration as the bitmap you load into it. Not sure if this is clear from the video, although it is documented in the API.



Code: http://developer.android.com/shareables/devbytes/BitmapAllocation.zip



Video: http://www.youtube.com/watch?v=rsQet4nBVi8





Comments

Popular posts from this blog

2023 Josef Newgarden

Een paar weken geleden won Josef Newgarden de Indianapolis 500. GreenLight Models gaat dit model produceren in de schaal 1/18. Plaats hier je pre-order. Kijkerstip! Samen met Scott McLaughlin, zijn Penske teamgenoot heeft Josef Newgarden een zeer komsiche youtube serie met flauwe grappen genaamd Bus Bros!