void android.graphics.Bitmap.recycle()
Free up the memory associated with this bitmap's pixels, and mark the bitmap as "dead", meaning it will throw an exception if getPixels() or setPixels() is called, and will draw nothing. This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the bitmap. This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap.
本文详细介绍了Android中Bitmap.recycle()方法的功能及其使用注意事项。该方法用于释放与位图关联的内存并标记位图为“已死”,这意味着之后调用getPixels()或setPixels()将抛出异常,并且位图将不再绘制任何内容。此操作不可逆,因此仅应在确定位图不再使用时调用。

481


被折叠的 条评论
为什么被折叠?



