How to create a Bitmap deep copy

前端 未结 5 1653
礼貌的吻别
礼貌的吻别 2020-12-18 18:49

I\'m dealing with Bitmaps in my application and for some purposes I need to create a deep copy of the Bitmap. Is there an elegant way how to do it?

I tried

5条回答
  •  太阳男子
    2020-12-18 19:16

    You could serialize the bitmap and then deserialize it. Bitmap is serializable.

提交回复
热议问题