Hello everybody,
I have an a little problem I don't manage to solve..
I have a bitmap. I know how to get its size with Bitmpaname.width or Bitmapname.height, but when I want to use them (see code below), it crashes.
I think there is some of bitmap size property a missed...
Thank you a lot in advance for your help.
A beginner,
Basco
I have an a little problem I don't manage to solve..
I have a bitmap. I know how to get its size with Bitmpaname.width or Bitmapname.height, but when I want to use them (see code below), it crashes.
I think there is some of bitmap size property a missed...
B4X:
Bitmpaname = web(i).Bitmap
Msgbox("" & Bitmpaname.Height & "+" & Bitmpaname.Width,"") 'it works
If Bitmpaname.width < Bitmpaname.height Then 'my application stops here
web(i).Bitmap = CreateScaledBitmap(web(i).Bitmap,120dip*x,120dip)
End If
If Bitmpaname.width > Bitmpaname.height Then
web(i).Bitmap = CreateScaledBitmap(web(i).Bitmap,120dip,120dip/x)
End If
'x is a scaling factor, just for the example
Thank you a lot in advance for your help.
A beginner,
Basco