Hi, I'm drawing bitmaps on a canvas.
The bitmaps are held as properties of objects, I did load them from .Gif-files, held in the Files-Folder, using
The drawing is done like:
I did get good result, however now I changed the usage in order the use the .Gif-Files as Ressources.
The loading is done like:
No change in the drawing code, but now the resolution seems to be lower. At least the displayed Gifs looks "pixolated". The size of the Gif on the screen didn't change!
WHY?
The bitmaps are held as properties of objects, I did load them from .Gif-files, held in the Files-Folder, using
B4X:
mBitmap=LoadBitmap(File.DirAssets,"MyGif.gif")
B4X:
mCanvas.DrawBitmap(mBitmap,Null,lRect)
I did get good result, however now I changed the usage in order the use the .Gif-Files as Ressources.
The loading is done like:
B4X:
mBitmapDrawable=Main.MyResources.GetApplicationDrawable("MyGif")
mBitmap=BitmapDrawable1.Bitmap
WHY?