Results 1 to 22 of 22

Thread: color purity..ideas

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    125

    Lightbulb color purity..ideas

    Hi, is there a way that a specific pixel point can be rounded to its nearest pure color in its current state and then using an if statment to act if that color changes?

    I can get the decimal values for pixel colors using the getpixel api, but my problem with that is the numbers changes very slightly with even the smallest different shade of the same color. Though i can work with that its a real hassle when you can come up with 10 different decimal values for something to the plain eye is black.

    For example, if i look at two pixels side by each other that look like they are black but one of them has the decimal value of 2565927 and the next one is 1315860, could i create a code for my program to read each of those pixel positions and consider them as being 0 - pure black.

    Ive searched around the forum for converting and determining shades but only knowing the bare basics of pixel color values I didnt manage to understand too much. So any code of this subject would be awesome. Thanks
    Last edited by Resilience; Aug 3rd, 2005 at 12:24 AM.
    --- Science does not explain why things are what they are. What we get from Science is our interpretation of how things do what they do.
    --- No Scientific law of the universe is stable, we did not create it, and we will never understand all of its abilities.
    --- What we determine as reality is a mere assumption of what tomorrow will be based on what yesterday was.

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