LucaMs Expert Licensed User Longtime User Feb 6, 2020 #1 Trying to modify a class of an our friend in which he uses a B4XView and sets the bitmap of this one using the SetBitmap method, I "noticed" that the same method requires a different type of parameter when used in B4A (Bitmap) or B4J (Image). Shouldn't it require a B4XBitmap?
Trying to modify a class of an our friend in which he uses a B4XView and sets the bitmap of this one using the SetBitmap method, I "noticed" that the same method requires a different type of parameter when used in B4A (Bitmap) or B4J (Image). Shouldn't it require a B4XBitmap?
S sorex Expert Licensed User Longtime User Feb 6, 2020 #2 it depends on the code and view that you use. if I recall right there's .setBitmap and .bitmap depending on the view type but both require a bitmap. you can still use the parent view (the not B4XView one) to set the bitmap. Upvote 0
it depends on the code and view that you use. if I recall right there's .setBitmap and .bitmap depending on the view type but both require a bitmap. you can still use the parent view (the not B4XView one) to set the bitmap.
Erel B4X founder Staff member Licensed User Longtime User Feb 6, 2020 #3 It will work with B4XBitmap, Bitmap (B4A / B4i) and Image (B4J). Upvote 0
LucaMs Expert Licensed User Longtime User Feb 6, 2020 #4 What I meant is that B4XView method SetBitmap should require a B4XBitmap object "everywhere", for consistency and logic; or not? Last edited: Feb 6, 2020 Upvote 0
What I meant is that B4XView method SetBitmap should require a B4XBitmap object "everywhere", for consistency and logic; or not?
Erel B4X founder Staff member Licensed User Longtime User Feb 6, 2020 #5 It is more practical like this as you can use B4XBitmap and you can also use the native type. Upvote 0