![]() I’ve come up with a pretty simple way of drawing inner shadows, however it requires you to specify the outline of the object you want to cast the inner shadow on as a Path. If I had to do it all over again though, I would go for a more general solution and use something like OpenCV by people who know a lot more about image processing then I do. It ended up being pretty simple (I just copied the drop shadow image processing code and modified it), and it performs well and looks good. Overlay the result on top of the component the same way as normally done with the normal drop shadow underneath the component.This will remove all the blur around the edges of the component shape in the blurred/inverted mask, leaving only the inside gradient. Multiply the blurred/inverted mask by the original uninverted/unblurred mask. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |