Android Question GameView - show a part of a picture

OdyMiles

Member
Licensed User
Hi,
quite new with gameview I try to find help how to pick a rectangel out of a jpg to display.
My picture is 275x183 (width/height)and I want to show the left side of it. From top to bottom. e.g. a books left side.


B4X:
    BD3.Bitmap = LoadBitmap(File.DirAssets,"pic.jpg")  '275x183
    BD3.SrcRect.Initialize(0,0,160,183)

    GV.BitmapsData.Add(BD3)
  
    GV.invalidate

In general I try to find syntax descriptions for Gameview but I always end at the tutorials that consist of to much information within the examples... (to much for me newbee)
Do I overlook any documentation?

Thanks for your help.

Chris
 
Top