Android Question Canvas.DrawBitMap works diffrent under Android 5.0 and 4.4 and below

Bill Kantz

Member
Licensed User
Longtime User
The below snipet of code stacks gif file to create a final BMP for display. Run on 4.4 or below it works fine. When the code is run on 5.0 only the last gif is shown as if all the other prior gif are being overwritten instead of merged.

B4X:
    Dim d As Bitmap
    d.Initialize(File.DirInternal, Station & "_County_Short.gif")
    C.DrawBitmap(d,Null,dr)

    Dim d As Bitmap
    d.Initialize(File.DirInternal, Station & "_Highways_Short.gif")
    C.DrawBitmap(d,Null,dr)


    Dim d As Bitmap
    d.Initialize(File.DirInternal, Station & "_City_Short.gif")
    C.DrawBitmap(d,Null,dr)

    Dim d As Bitmap
    d.Initialize(File.DirInternal, Station & "_N0R_Legend_0.gif")
    C.DrawBitmap(d,Null,dr)

    File.Delete(File.DirInternal,"b.bmp")
    File.Delete(File.DirInternalCache, "b.bmp")
   
    Dim b As Bitmap
   
    bout = File.OpenOutput(File.DirInternal, "b.bmp", False)
    b.WriteToStream(bout,100,"JPEG")
    bout.close
   
    Dim tmp As Bitmap
    tmp.Initialize(File.DirInternal,"b.bmp")
 
Top