B4A Library RoundImage V1.0

anOparator

Active Member
Licensed User
Longtime User
Will try LoadBitmapSample also , see my edit 4 posts up.
 

FrankBerra

Active Member
Licensed User
Longtime User
Hi @DonManfred, i used your library and it works almost perfectly but in some strange and unclear situations it crashes my app.

The code I use is:
B4X:
FotoUtente.Bitmap=ImmagineCircolare.CreateBitmap(LoadBitmapSample(File.DirAssets, "nofotoprofilo.png", 90dip, 90dip))

The debugger says:
An error occurred:
java.lang.RuntimeException: Array not expected...

It crashes also if i use LoadBitmap instead of LoadBitmapSample.

(Sorry, I can't upload my project to test)

By the way if i use the following code everyting is going well:
B4X:
FotoUtente.Bitmap=LoadBitmapSample(File.DirAssets, "nofotoprofilo.png", 90dip, 90dip)

So it seems the crash is caused by your Lib...

Any workaround or fix?

Thanks in advance!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…