How to get CImg pixel value?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bernard123456
    New Member
    • Feb 2009
    • 1

    How to get CImg pixel value?

    Hi all,

    I am new to CImg. I would like to know how to obtain a pixel value on a specific coordinate.


    Thank in advance to all
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    I have never heard of CImg before, however it took me 2 minutes of reading the documentation to discover which method to use.

    If you want to use a library reading the libraries documentation (admittedly if it exists) is a good place to start.

    Comment

    • jonyb
      New Member
      • Oct 2011
      • 1

      #3
      Originally posted by Banfa
      I have never heard of CImg before, however it took me 2 minutes of reading the documentation to discover which method to use.

      If you want to use a library reading the libraries documentation (admittedly if it exists) is a good place to start.

      Maybe you could share your knowledge. If you can be bothered to look up the documentation for CImg and then reply, why not point us to the answer.

      You can set the pixel data like you would elements of an array
      see T& operator()

      Comment

      • josarv
        New Member
        • Apr 2012
        • 1

        #4
        Offsets in operator

        I dont know how to use the offsets wh and whd in the operator. I want to change the color of a group of pixels. Thanks

        Comment

        Working...