Suggestion to add getpixel functions to DevIL

Anonymous
2006-07-01
2013-05-02
  • Anonymous - 2006-07-01

    Hi, it would be very nice if DevIL would have some sort of way to access the pixel of the current image. Something like...

    ilGetPixel(x,y);

    Which would get the current pixel at location X and Y. The problem is, how would you deal with all the types (byte, short. int. float, double) and formats (RGB,RGBA,BGR,BGRA,Luminance)?

    I suppose you could have a different function for all permutations of types and formats, maybe there is a better way?

     
    • Anonymous - 2007-01-05

      The unique way would be to return a pointer at the pixel data and an integer to specify the size of the data about the pixel data

       

Log in to post a comment.