|
-
May 7th, 2002, 08:56 PM
#1
Inverting an image
How do I invert an image, like the one in photoshop?
-
May 7th, 2002, 09:26 PM
#2
1. Get the pixel color.
2. Split it into its R, G, and B components.
3. Convert back into a Color:
Code:
Dim c As Long
c = RGB(255 - R, 255 - G, 255 - B)
4. Put the pixel back in its place.
Z.
-
May 7th, 2002, 10:07 PM
#3
Good Ol' Platypus
You could also turn it to HSB (aka. HSV/HSL) and invert it from there... heard it gives a better effect.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|