Read/Write pixel data

BlitzMax Forums/BlitzMax Programming/Read/Write pixel data

Craig H. Nisbet(Posted 2007) [#1]
Do you guys know how to translate the value that comes from the "readPixel" command into and R,G,and B values and then convert back again so it can be used in "writePixel"? My intent is to be able to manipulate the values then write them back out to the pix map, but I'm not sure what that format is.


tonyg(Posted 2007) [#2]
This should help.


impixi(Posted 2007) [#3]
If you want something simple for pre-/post- processing of pixmaps here’s a ‘template’ function that you might find useful: