Results 1 to 3 of 3

Thread: Inverting an image

  1. #1
    Brian
    Guest

    Inverting an image

    How do I invert an image, like the one in photoshop?

  2. #2
    Zaei
    Guest
    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.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width