LordZenzo Well-Known Member Licensed User Longtime User Jul 24, 2019 #1 I would like to create a B4XUI library and I would like this library to receive the name of a png file and load it into a bmp extracting it from the file folder, ie from the file.DirAssets and I would like it to work both in B4A and in B4J for B4A use JarFileloader for B4J it doesn't work maybe it was better in b4j questions
I would like to create a B4XUI library and I would like this library to receive the name of a png file and load it into a bmp extracting it from the file folder, ie from the file.DirAssets and I would like it to work both in B4A and in B4J for B4A use JarFileloader for B4J it doesn't work maybe it was better in b4j questions
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2019 #2 Create a b4xlib for this. It will be cross platform and it will be very simple to include files. Example from today: https://www.b4x.com/android/forum/t...platform-custom-view-packed-as-b4xlib.107971/ Upvote 0
Create a b4xlib for this. It will be cross platform and it will be very simple to include files. Example from today: https://www.b4x.com/android/forum/t...platform-custom-view-packed-as-b4xlib.107971/
LordZenzo Well-Known Member Licensed User Longtime User Jul 24, 2019 #3 Erel said: Create a b4xlib for this. It will be cross platform and it will be very simple to include files. Example from today: https://www.b4x.com/android/forum/t...platform-custom-view-packed-as-b4xlib.107971/ Click to expand... why do you show me this example? I asked how to load a png having the only name and assuming that the file is in the file folder of the project that contains the library I want to do in your example no PNG or other file is loaded I didn't ask how to make a generic library Upvote 0
Erel said: Create a b4xlib for this. It will be cross platform and it will be very simple to include files. Example from today: https://www.b4x.com/android/forum/t...platform-custom-view-packed-as-b4xlib.107971/ Click to expand... why do you show me this example? I asked how to load a png having the only name and assuming that the file is in the file folder of the project that contains the library I want to do in your example no PNG or other file is loaded I didn't ask how to make a generic library
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jul 24, 2019 #4 Have you tried: Code: Copy Dim img As B4XBitmap = xui.LoadBitmap(File.DirAssets,filename) This should be cross platform. Upvote 0
Have you tried: Code: Copy Dim img As B4XBitmap = xui.LoadBitmap(File.DirAssets,filename) This should be cross platform.
Erel B4X founder Staff member Licensed User Longtime User Jul 25, 2019 #5 LordZenzo said: why do you show me this example? I asked how to load a png having the only name and assuming that the file is in the file folder of the project that contains the library I want to do in your example no PNG or other file is loaded I didn't ask how to make a generic library Click to expand... Just tried to help. Will not happen again... BTW, that library includes several "embedded" files (text file and layout files). Upvote 0
LordZenzo said: why do you show me this example? I asked how to load a png having the only name and assuming that the file is in the file folder of the project that contains the library I want to do in your example no PNG or other file is loaded I didn't ask how to make a generic library Click to expand... Just tried to help. Will not happen again... BTW, that library includes several "embedded" files (text file and layout files).