Results 1 to 2 of 2

Thread: how can we get the color of a pixel?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Cranfield, UK
    Posts
    5

    how can we get the color of a pixel?

    Hello
    I'd like to take over the color of a selected pixel. Is it possible to get it and then to change it by that way.
    thank you.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: how can we get the color of a pixel?

    Use glReadPixels to read the pixel, modify it as you want, and then put it back with glDrawPixels.

Similar Threads

  1. Is it possible to get the pixel color?
    By Nikola Vitanovic in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-13-2010, 04:24 PM
  2. Pixel Color
    By Balu in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-26-2003, 02:23 AM
  3. Pixel Color
    By Balu in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-05-2003, 04:03 AM
  4. Getting pixel color !
    By in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 10-01-2002, 09:21 AM
  5. Getting Color of pixel
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-18-2001, 03:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean