Hi there,
not sure if this is a bug, if not please tell me where my brainbug is .
After editing a picture I want to save the picture and reload a preview. If i use an imageview the picture will be zommed in, I tried, SetBackgroundImage or Bitmap Method (Load or LoadSample), see code below. If I take a panel to preview the new edited picture set by setbackground has the full size without any zoom.
(I tried this on my samsung galaxy tab, maybe there is a resolution problem. Views are loaded via layout.)
not sure if this is a bug, if not please tell me where my brainbug is .
After editing a picture I want to save the picture and reload a preview. If i use an imageview the picture will be zommed in, I tried, SetBackgroundImage or Bitmap Method (Load or LoadSample), see code below. If I take a panel to preview the new edited picture set by setbackground has the full size without any zoom.
(I tried this on my samsung galaxy tab, maybe there is a resolution problem. Views are loaded via layout.)
B4X:
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal, "3.jpg", False)
c.Bitmap.WriteToStream(out, 100, "JPEG")
out.Close
Dim NewBitmap1 As Bitmap
NewBitmap1.Initialize(File.DirRootExternal, "3.jpg")
Panel2.SetBackgroundImage(NewBitmap1)
'ImageView1.SetBackgroundImage(NewBitmap1)
ImageView1.Bitmap = LoadBitmap(File.DirRootExternal, "3.jpg")
Last edited: