I Inman Well-Known Member Licensed User Longtime User Oct 17, 2013 #1 Is it possible to add a drop shadow effect to a bitmap file or onto the Imageview holding it? What makes it particularly tough in my case is that the image is circular shaped and not rectangular. I found some code here. Could you please take a look and see if this can be achieved with B4A? http://stackoverflow.com/questions/3693234/custom-imageview-with-drop-shadow
Is it possible to add a drop shadow effect to a bitmap file or onto the Imageview holding it? What makes it particularly tough in my case is that the image is circular shaped and not rectangular. I found some code here. Could you please take a look and see if this can be achieved with B4A? http://stackoverflow.com/questions/3693234/custom-imageview-with-drop-shadow
NeoTechni Well-Known Member Licensed User Longtime User Oct 17, 2013 #2 Look through the image getting the value of each pixel, obtain the alpha of each pixel, draw that alpha as a shade of grey (r,g,b all have the same value) to a second image. Then draw the second one under the first one Upvote 0
Look through the image getting the value of each pixel, obtain the alpha of each pixel, draw that alpha as a shade of grey (r,g,b all have the same value) to a second image. Then draw the second one under the first one
I Inman Well-Known Member Licensed User Longtime User Oct 18, 2013 #3 Thanks man. I will try to do it. Will this produce an effect like this? Upvote 0