Android Question deviant Bitmap dimensions after loading jpg

akf

New Member
Licensed User
Longtime User
Hello,

I have different JPEGs of the same size and dimension.
I load the files as follows:

dim lv_dir as String
Dim lv_jpg As String
Dim TBmp As Bitmap

lv_dir = <directoy>
lv_jpg = <filename>
TBmp.Initialize(lv_dir,lv_jpg)

Checking the dimensions TBmp.Height and TBmp.Width give the expected sizes of the bitmap.

Changing the filename (by program) and then call the same sub routine to read the new bitmap shows different (wrong) values for height/width and will lead to errors.
I'm a enthusiastic newbie - but have no idea to solve this 'problem'.
 
Top