Thread: GetPixel()

  1. #1
    Registered User
    Join Date
    Mar 2005


    Hi -

    I'm currently trying to read a bmp file with a specified x,y location. I found the function GetPixel which seems to do this for me:

    ColorRef GetPixel(h, x, y);

    But alas I'm not clever enough to know how to use it properly. What format does it return the pixel data? is h the filename?

    Sorry if this is pretty basic stuff but any help would be much appreciated.



  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    I guess I'd start here.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GetPixel and getting a screenshot.
    By pur in forum Windows Programming
    Replies: 19
    Last Post: 03-27-2009, 02:29 AM
  2. GetPixel tolerance
    By JordanCason in forum C++ Programming
    Replies: 8
    Last Post: 12-06-2007, 11:47 PM
  3. GetPixel and CreateDC help. (winapi)
    By OpiateDelusion in forum Windows Programming
    Replies: 6
    Last Post: 08-19-2007, 08:15 AM
  4. GetPixel with DISPLAY
    By phil_drew in forum Windows Programming
    Replies: 2
    Last Post: 04-01-2003, 04:57 PM
  5. GetPixel return value
    By Garfield in forum Windows Programming
    Replies: 7
    Last Post: 11-14-2001, 01:18 AM