Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, What I would like to do is pass an image file into a c program as an argument and then loop through it's pixels to see what color they ...
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Location
    Wisconsin
    Posts
    2

    Retrieve pixel color

    Hello,
    What I would like to do is pass an image file into a c program as an argument and then loop through it's pixels to see what color they are. Does someone know what the code is to get a pixel(specifically the pixels color) and what header/s would have to be included.
    Thanks,

    Chris.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    Image Magick is a nice library that helps you to do that for a lot of image formats. ImageMagick: Convert, Edit, and Compose Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...