ios - Adding border to edges of opaque area of UIImage with a filter -


hello: in project, i'm using obshapedbutton process touches on lot of objects overlap (it's map each territory own separate object). basically, library prevents touch being processed on transparent point on given view.

i'm attempting add border effect edges of opaque part of uiimage (and adding semi-transparent overlay above that). effect of this:

example

which can simplified (example of 1 image): simplified example

i using mgimageutilities color in opaque parts of territories using line:

[territory setimage:[[territory image] imagetintedwithcolor:tint]]; 

the problem i'm not sure how color borders (which can any shape). i've looked @ this link already, haven't been able come anything.

thanks in advance help!

terribly hacky, use mgimageutilities' uiimage+proportionalfill scale resizing create larger image, uiimage+tint red, , stack below.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -