In my app I load an image into an image view that has a width of 268 and a height of 160. Also if the user clicks the image it shows a full screen version. However users are reporting that their images are distorted.
the code I use to load the image view
and the code I use to display the full screen version (I open a new activity and load the image as the background)
When the images were saved they were initialized using this code
Any body know where I'm going wrong? Any help is much appreciated.
the code I use to load the image view
B4X:
Dim AddImage As Bitmap
AddImage = LoadBitmapSample(File.DirRootExternal", DisplayText.text & ".jpg", ImagePreview.Width, ImagePreview.Height)
AddImage = CreateScaledBitmap(AddImage ,ImagePreview.Width, ImagePreview.Height)
ImagePreview.Bitmap = (AddImage )
and the code I use to display the full screen version (I open a new activity and load the image as the background)
B4X:
Dim Image As Bitmap
Image = LoadBitmapSample(File.DirRootExternal", Main.DisplayText & ".jpg",Activity.Width,Activity.Height)
Image = CreateScaledBitmap(Image ,Activity.Width,Activity.Height)
Activity.SetBackgroundImage(Image )
When the images were saved they were initialized using this code
B4X:
bmp.InitializeSample(Dir, FileName,Activity.Width,Activity.Height)
Any body know where I'm going wrong? Any help is much appreciated.