objective c - How can I color a particular part of a view, as if you were using the fill tool gimp or paint? -


how can color particular part of view, if using fill tool gimp or paint? let me explain. if have color square divided in half black line, how select part e 'delimited blacks edges? know how catch , paint part, if want paint portion enclosed edges of different color?

it's called floodfill, , standard osx , ios apis dont have it. it's not unless writing graphics editor yourself. ordinary filled graphics created using example nspath define edges of shape, giving fill color potentially stroke (line) color.

if writing graphics editor, or have unusual case need floodfill, there people who've written them cocoa already. google "cocoa floodfill". won't link 1 here haven't tried them, , anyway best might vary depending on you're trying do.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -