I have only just noticed that the following code causes the bitmap's quality to be reduced. It's almost like it has been blurred. Can someone point me to the solution?
Thanks.
Thanks.
B4X:
Dim bc As BitmapCreator
Dim bmp As B4XBitmap= xui.LoadBitmap(File.DirAssets, "test.jpg")
bc.Initialize(bmp.Width, bmp.Height)
bc.CopyPixelsFromBitmap(bmp)
ImageView1.SetBitmap(bc.Bitmap) 'looks good here
BasePanel=xui.CreatePanel("")
BasePanel.SetLayoutAnimated(0,0,0,bmp.Width,bmp.Height)
Dim cnv As B4XCanvas
cnv.Initialize(BasePanel)
cnv.DrawBitmap(bc.Bitmap, cnv.TargetRect)
ImageView1.SetBitmap(cnv.CreateBitmap) 'looks bad here'