Results 1 to 2 of 2

Thread: Finding Pixel Color for flood-fill

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    1

    Finding Pixel Color for flood-fill

    How do you find the color of a single pixel? I'm using GLUT w/ VC++ and I've been trying to do a flood-fill but still can't figure out the gl function to use to return the color of a single pixel. I'd like to compare the color returned for a single pixel the mouse is at currently to the background color and tell it to fill until they don't match. Thanks.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    Re: Finding Pixel Color for flood-fill

    You can use glReadPixels.

Similar Threads

  1. Fill with color
    By Jean Sommeil in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-04-2014, 09:48 PM
  2. fill with color?
    By chign in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-06-2010, 05:44 AM
  3. coloring object using Flood fill algorithm.
    By e_zoo_din in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 04-12-2006, 09:30 AM
  4. Flood Fill Algorithm
    By CuriosoVB in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-19-2003, 12:13 PM
  5. Finding a Pixel Color
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-01-2003, 12:55 PM

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