moster67 Expert Licensed User Longtime User Jan 13, 2019 #1 I have the following code: Code: Copy Dim mBmap As Bitmap mBmap.InitializeMutable(640dip,480dip) But I want to add a Bitmap.Config such as ARGB_8888 but I cannot see a way to do that with the methods available of the Bitmap-object. Am I missing something? What I want to do is to convert the following Java-code to B4A: Code: Copy Bitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types Bitmap imageToDisplay = Bitmap.createBitmap(640,480,conf); I know I can resolve it by other means but I thought I should ask first.....
I have the following code: Code: Copy Dim mBmap As Bitmap mBmap.InitializeMutable(640dip,480dip) But I want to add a Bitmap.Config such as ARGB_8888 but I cannot see a way to do that with the methods available of the Bitmap-object. Am I missing something? What I want to do is to convert the following Java-code to B4A: Code: Copy Bitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types Bitmap imageToDisplay = Bitmap.createBitmap(640,480,conf); I know I can resolve it by other means but I thought I should ask first.....
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2019 #2 ARGB8888 is the default format. Upvote 0
moster67 Expert Licensed User Longtime User Jan 13, 2019 #3 Thanks, I was not aware of that but should have had suspected so. However, if we wish to create a bitmap using perhaps ARGB_4444 or any other permissible value, how can we do that? Upvote 0
Thanks, I was not aware of that but should have had suspected so. However, if we wish to create a bitmap using perhaps ARGB_4444 or any other permissible value, how can we do that?
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2019 #4 What are you trying to do? You will need to use JavaObject or inline java or write a small library. Upvote 0
moster67 Expert Licensed User Longtime User Jan 13, 2019 #5 Working with OpenCV and TensorFlow. Just wanted to be sure to use native methods of B4A as much as possible when available. I will resolve it as suggested by you - no problems. Thanks. Upvote 0
Working with OpenCV and TensorFlow. Just wanted to be sure to use native methods of B4A as much as possible when available. I will resolve it as suggested by you - no problems. Thanks.