3

I was wondering if there was a way to analyse a transparent UIImage outline and create a UIBeizerPath to create a Drop Shadow.

Similar to the way the UITabBar will create a drop shadow around the outline of your Tab Bar image.

enter image description here

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Moe
  • 4,744
  • 7
  • 28
  • 37
  • 2
    Do you need the UIBezierPath for other purposes? Or do you just need a drop shadow, perhaps [this question](http://stackoverflow.com/questions/2044479/what-is-the-best-way-to-create-a-shadow-behind-a-uiimageview) has your answer. – rebelzach Jan 17 '13 at 05:27
  • Other purposes also, but that is a good start. Can I extract a UIBeizerPath from a UIImageView? – Moe Jan 17 '13 at 05:59
  • I'm not going to say it is not possible, but it is a very complex problem. Basically what you are trying to do is to get a vector shape from rasterised bitmap image. You would need to do quite a lot of mathematics and image processing to achieve this. But you can do it manually :) http://www.sketchcasts.net/episodes/how-to-get-a-vector-shape-from-a-bitmap-image – Legoless Sep 24 '14 at 21:58
  • The iOS SDK doesn't include shape tracing. You'll need to find a third-party library or implement it yourself. – rob mayoff Sep 24 '14 at 22:50

0 Answers0