Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Color onto a Picture

lukeirvinlukeirvin Posts: 388Registered Users @ @
Here's what I want to accomplish:

Snap a photo, or select a photo
For example, let's say the photo is of a brown chair
User can color over the chair to make it look blue or red but still see the details of the chair so it doesn't look like a solid color on top of the picture.

What is the best way to approach something like this?

Should the image have a gray layer over it to color on?

Should the colors have some transparency to them?

I have seen a few apps that approach this somewhat. I just want to make sure I'm using the right technique when doing something like this.

Thanks everyone!


  • dev666999dev666999 Posts: 3,628New Users @ @ @ @ @
    It can be done two or three different ways using CoreGraphics depending on what you wish to do.

    And you can use touches to paint on the colors.

    It's fairly straightforward once you get the hang of it.

    You'll need to play with it though, because from my experience the device colors at times are not as intense as the simulator colors.

    Google "Colorizing a UIImage" and you'll get lots of hits. Check out the ones from StackOverflow.

    It'll give you what you need.

  • dev666999dev666999 Posts: 3,628New Users @ @ @ @ @
    Grayscaling the image first will give you the purest color.

    But, from my experience, it's not necessary in most cases... the color tint will be close enough.

    You need to try it both ways to see if it matters to you.
Sign In or Register to comment.