Bitmap.resize

ukimiku

Active Member
Licensed User
Longtime User
It would be very convenient to be able to resize bitmaps without the need for worrying about killing references to old bitmaps, instantiating new bitmap references, hoping for the garbace collector to do its job in time to be able to reuse an old reference to a bitmap... In many areas, B4A can very well allocate and reallocate memory for data structures, like re-dim arrays, lists, and so forth, which makes the language very practical and suitable for rapid prototyping. But a bitmap is just another data structure, it should be equally easy to "re-dim" a bitmap.
B4X:
dim b as bitmap
b.InitializeMutable(width, height)
and later it would be good if we could just
B4X:
b.resize(new_width, new_height)

Thank you for considering.

Regards,
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…