Chris Lee Member Licensed User Feb 27, 2018 #1 The examples I've seen using B4XBitmap assume that you are loading a bitmap from a file, however that's not always the case. In B4a you have InitializeMutable but that's not available in B4XBitmap. What's the most efficient code that will create a new in memory bitmap I can draw on that will work in all environments?
The examples I've seen using B4XBitmap assume that you are loading a bitmap from a file, however that's not always the case. In B4a you have InitializeMutable but that's not available in B4XBitmap. What's the most efficient code that will create a new in memory bitmap I can draw on that will work in all environments?
OliverA Expert Licensed User Longtime User Feb 27, 2018 #2 Draw on an instance of B4XCanvas (https://www.b4x.com/android/forum/threads/b4x-xui-drawing-with-b4xcanvas.85113/#content). Then use the CreateBitmap method to generate a B4XBitmap. Upvote 0
Draw on an instance of B4XCanvas (https://www.b4x.com/android/forum/threads/b4x-xui-drawing-with-b4xcanvas.85113/#content). Then use the CreateBitmap method to generate a B4XBitmap.
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2018 #3 Example: https://www.b4x.com/android/forum/threads/b4x-xui-create-a-round-image.85102/#content Upvote 0