get pixel color

BlitzMax Forums/BlitzMax Programming/get pixel color

ziggy(Posted 2006) [#1]
How can I get the pixel color of a specific pixel of a TImage?
Is there any way to do it?


Diablo(Posted 2006) [#2]


Edit: FIIIIIIIIIXXXXXXXXXXXXXXEEEEEEEEEEEEEEED!!!!!!!!! ^^

EDIT: FIXXXEEED again now uses read pixel


degac(Posted 2006) [#3]
This way is OpenGL only

http://www.blitzbasic.com/Community/posts.php?topic=56071#623849

the second way is to convert a Timage into a Pixmap and then use the ReadPixel method


ziggy(Posted 2006) [#4]
Thanks!! It worked :D


Suco-X(Posted 2006) [#5]
Hi
There are more ways to get the pixel color from pixmaps. Diablos is the slowest. Look at this small test.



Mfg Suco