Hi guys,
bit of a newb and just playing around and am looking for some help if you don't mind?
Basically i understand everything thats been posted etc, quick question though: how would i go about accessing the rgb values for a particular X and Y co-ordinate?
i found: 4*((imageWidth*round(Y))+round(X))
but i can't seem to get it to work, adjusting the X co-ordinate works fine but adjusting the Y co-ordinate value seems to pick a pixel that is nowhere near where i wanted?
am i along the right lines with the above formula or am i well off?
|