Colouring part of an image

Discussion in 'iOS Programming' started by PeterCushion, Jan 4, 2010.

  1. PeterCushion macrumors newbie

    Jan 4, 2010
    Hi Everyone

    Can anyone point me in the right direction as to how I can create a children's colouring book style App? I have all the images but am getting a little lost with the best approach - should I split the image up into layers? Ideally I'd like to be able to detect where the user has tapped on a single image and colour that part.

    If there are any tutorials (on-line or books) or source code examples anybody is aware of it would be much appreciated.

    Thanks in advance
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Do a search. One of our Indian sounding friends asked the same some months back (then got very upset when the SDK didn't provide a one-line solution). Basically I'd look at implementing a flood-fill algorithm (see wikipedia).

    Edit to add: here is that wonderful thread
  3. iphonejudy macrumors 6502


    Sep 12, 2008
    Hi peter,

    The better solution is spliting the whole image in to separate layers then apply color

Share This Page