W warayTek Member Licensed User Nov 24, 2020 #1 Hello everyone, Trying to simply the example from BitmapCreator so that I can understand it a little better how to use it in my application. B4X: Copy Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout") OriginalBmp = xui.LoadBitmapResize(File.DirAssets, "mycat.jpg",256dip, 192dip, False) End Sub Sub Button1_Click effects.ImplodeAnimated(1500, OriginalBmp,10, ImageView1) End Sub This give me Null object reference error. I hope someone can enlighten me what I'm missing. Regards, warayTek
Hello everyone, Trying to simply the example from BitmapCreator so that I can understand it a little better how to use it in my application. B4X: Copy Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout") OriginalBmp = xui.LoadBitmapResize(File.DirAssets, "mycat.jpg",256dip, 192dip, False) End Sub Sub Button1_Click effects.ImplodeAnimated(1500, OriginalBmp,10, ImageView1) End Sub This give me Null object reference error. I hope someone can enlighten me what I'm missing. Regards, warayTek
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2020 #2 Don't forget the initialize 'effects'. Upvote 0
klaus Expert Licensed User Longtime User Nov 24, 2020 #3 You may have a look at the B4X Graphics Booklet. BitmapCreator is explained in it. Upvote 0
W warayTek Member Licensed User Nov 24, 2020 #4 Thanks everyone for the response...got it working! Upvote 0