I was going to use DirectPython11 but i could not find anything to do with drawing individual pixels. Now i am looking at pyglet.
In pyglet i have found the Image Data class which seems to be able to let me deconstruct any image, change its data/pixels and then reconstruct/draw the image.
Current problem is that i have no clue how to use this data or alter it as it comes out as one string.
What i really want is a function that i can do this or close enough:
drawpixel(x, y, colour)
whether this draws to a buffer to flip once all pixels are drawn or to a image object to be drawn to the screen at 0, 0.
Performance does matter but at this point i will take any half decent way to do it, if anyone has any helpful info on how i can do this, thank you!
Nekroze

New Topic/Question
Reply




MultiQuote


|