Hello,
Iam looking for a way to save background under a sprite.
I have the background picture as bitmap
but the bitmap is not displayd at its original size but spread to the whole screen.
so I can't use BKGRND to restore the part of the background needed.
I did a test :
- Set the background with the picture
- display the same picture over the background :
It does not cover the background because the JPG is not resized to
activity.Width and activity.Height !!!!
Any trick for me ??? :BangHead:
Thks
WW
Iam looking for a way to save background under a sprite.
I have the background picture as bitmap
B4X:
BKGRND.Initialize( File.DirAssets, "fond.jpg" )
so I can't use BKGRND to restore the part of the background needed.
I did a test :
- Set the background with the picture
- display the same picture over the background :
B4X:
SCREEN_REC.initialize( 0, 0, activity.Width, activity.Height )
LAYER.Drawbitmap(BKGRND, SCREEN_REC, SCREEN_REC )
Activity.Invalidate2( SCREEN_REC )
It does not cover the background because the JPG is not resized to
activity.Width and activity.Height !!!!
Any trick for me ??? :BangHead:
Thks
WW