in reply to How to get pixel color from 3d application

30 second search how to make it in c. I know many apps like autohotkey. Anyway i want to make it by my own, why ? because this is the best way to learn. It's boring to make pointless scalars, arrays, readin files etc. When i trying to get something i have motivation, and i read alot and spend time to get it. I think perl can do much more than simple files tasks.
  • Comment on Re: How to get pixel color from 3d application

Replies are listed 'Best First'.
Re^2: How to get pixel color from 3d application
by FreeBeerReekingMonk (Deacon) on Feb 29, 2016 at 23:32 UTC
    How to capture screen under Win32?

    Not sure if you then want to process the data raw (BMP format is very easy to read) or use libraries like https://metacpan.org/pod/Imager

    Using Imager getpixel

    if raw and you want to read the pixels yourself, read: The simple explanation first: http://paulbourke.net/dataformats/bmp/

    Now the more complex explanation: https://en.wikipedia.org/wiki/BMP_file_format

    I could not find the exact post, but I know it exists on PM, it was for BMP with pack. This should do as a start: BMP file manipulation

    Just know that with AutoIt3 you can do all this with 1 command: https://www.autoitscript.com/autoit3/docs/functions/PixelGetColor.htm