Brian
May 7th, 2002, 08:56 PM
How do I invert an image, like the one in photoshop?
Zaei
May 7th, 2002, 09:26 PM
1. Get the pixel color.
2. Split it into its R, G, and B components.
3. Convert back into a Color:
Dim c As Long
c = RGB(255 - R, 255 - G, 255 - B)
4. Put the pixel back in its place.
Z.
Sastraxi
May 7th, 2002, 10:07 PM
You could also turn it to HSB (aka. HSV/HSL) and invert it from there... heard it gives a better effect.