HI,
I am trying to get the pixel value from a .TGA file.
After reading the value it is stored in a buffer array. then the buffer array is manipulated to get the desired effect.
It is used for the 2d water ripple effect.
My problem is when I use
Image.GetPixel(i,j);
it returns value that is not numeric for eg: it sends value as r='L' g = '£' b='A'
as a result i am not able to retrieve the numeric value of each pixel. So i cannot store proper value in BUFFER.
And i cannot use the function Image.SetPixel(i,j, sf::color( r,g,b))
since the value of (r,g,b) cannot be properly set since its not retrieved properly from the GetPixel();
What should i do get the proper (r,g,b) value
All suggestions are welcome