Hi all.
I finally buy this wonderfull app.
Now i have more doubts than ever!
I have problems using imagelib library.
The problem is the following, when i create a bitmap with backdrop image, I create a drawer and paint a bit image over previous, using drawer.drawimage1
When I first time, try to draw in a gamewindow.drawbackgroundimage2, all seems to be correct, but the second time, value doesn't work.
I have to use an intermediate image for storing value of backdropbitmap and reassign every time.
The code is follow.
This methods seems to work, but i wonder why i have to create new BackdropBitmap referencing to previous (TmpBackdropBitmap).
I commented 2 lines needed to work, and i wonder why I need this 2 lines.
Any Clues?
Thanks in advance.
fjsantos.
________
XVZ1300
I finally buy this wonderfull app.
Now i have more doubts than ever!
I have problems using imagelib library.
The problem is the following, when i create a bitmap with backdrop image, I create a drawer and paint a bit image over previous, using drawer.drawimage1
When I first time, try to draw in a gamewindow.drawbackgroundimage2, all seems to be correct, but the second time, value doesn't work.
I have to use an intermediate image for storing value of backdropbitmap and reassign every time.
The code is follow.
B4X:
Sub UpdateForm(x, y)
CellBitmap.New1(AppPath & "\images\cell.png")
'BackdropBitmap.New3(TmpBackdropBitmap.Value)
CellRectangle.New1(0, 0, CellBitmap.Width, CellBitmap.Height)
BackdropRectangle.New1(x, y, CellBitmap.Width, CellBitmap.Height)
GameFormDrawer.New2(BackdropBitmap.Value, B4PObject(5))
GameFormDrawer.DrawImage1(CellBitmap.Value, CellRectangle.Value, BackdropRectangle.Value, false)
GameFormDrawer.Refresh2(BackdropRectangle.Value)
'TmpBackdropBitmap.New3(BackdropBitmap.Value)
GameGameWindow.DrawBackgroundImage2(BackdropBitmap.Value)
End Sub
This methods seems to work, but i wonder why i have to create new BackdropBitmap referencing to previous (TmpBackdropBitmap).
I commented 2 lines needed to work, and i wonder why I need this 2 lines.
Any Clues?
Thanks in advance.
fjsantos.
________
XVZ1300
Last edited: