Any way to reverse two colors within a selection ?

M
Posted By
mrharris2000
Jul 28, 2004
Views
1684
Replies
3
Status
Closed
Is there any way to create a selection, filter, mask, or possibly a shape that when placed on a top layer will reverse two colors below it ? Heres a quick pic of what Im talking about ?

<http://sctvforums.com/contrast.jpg>

Thanks
Mike

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

SF
Scott_Falkner
Jul 28, 2004
Not in a general way, because the filter/adjustment/whatever would have to evaluate the entire selection, determine there are only two colours, then swap one for the other. It’s that second stage that would be tricky, becuase how do you accound for a third colour, whether it’s a result of a noisy scan, antialiasing, or poor choise of selection. It could be written, but for shat I expect to be a very small market, who would bother.

In your example, you cound flip horizontal or rotate 180 degrees.
JA
Jay_Arraich
Jul 28, 2004
Try adding a Hue/Sat adjustment layer with Hue set to -180. Use the adjustment layer mask to limit the effect (as shown in the example).

-Jay Arraich
GA
George_Austin
Jul 28, 2004
Mike,

In the example you chose, "reversing" the colors is easy because

(1)You are dealing with only two colors in the entire area

(2)The colors happen to be "inverses" of each other

All you need to do in the case you cited is to create a rectangular marquee covering the area you want affected and then click Image > Adjustments > Invert.

Probably your interest goes beyond the simplistic case of initial colors which are inverses of each other but, then again, that
IS the example you used and you just might find this a useful quickie.

George

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections