Android Question Retrieve ImageView Bitmap Parameters

swabygw

Active Member
Licensed User
Longtime User
Let's say that we assign a bitmap to an ImageView like this:
B4X:
ImageView1.Bitmap = LoadBitmap(SomeDir, SomeFilename)
Is it possible to, later, retrieve those parameters, SomeDir and SomeFilename, by looking at some property of ImageView1?

Like, for example:
B4X:
Dim b As Bitmap
b = ImageView1.Bitmap
Dim Dname, Fname As String
Dname = b.?
Fname = b.?
Or has the bitmap been abstracted away from its original source?
 

inakigarm

Well-Known Member
Licensed User
Longtime User
Let's say that we assign a bitmap to an ImageView like this:
B4X:
ImageView1.Bitmap = LoadBitmap(SomeDir, SomeFilename)
Is it possible to, later, retrieve those parameters, SomeDir and SomeFilename, by looking at some property of ImageView1?

Like, for example:
B4X:
Dim b As Bitmap
b = ImageView1.Bitmap
Dim Dname, Fname As String
Dname = b.?
Fname = b.?
Or has the bitmap been abstracted away from its original source?
You'll have to save filename/path in a variable or use the tag property of the image view to save the path and read it after
 
Upvote 0
Top