OdyMiles Member Licensed User Nov 2, 2016 #1 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. Code: Copy 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
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. Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Nov 3, 2016 #2 Your code looks correct except of the missing 'dip' units: Code: Copy BD3.SrcRect.Initialize(0,0,160dip,183dip) Upvote 0
Your code looks correct except of the missing 'dip' units: Code: Copy BD3.SrcRect.Initialize(0,0,160dip,183dip)