0 Replies - 387 Views - Last Post: 27 January 2012 - 03:58 AM Rate Topic: -----

Topic Sponsor:

#1 Nekroze  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 124
  • Joined: 08-May 11

Drawing Pixels? Pyglet?

Posted 27 January 2012 - 03:58 AM

I am looking for an efficient way to draw to each pixel on the screen/window of my application in any way possible, with any module possible.

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

Is This A Good Question/Topic? 0
  • +

Page 1 of 1