you can use PIL to create a PNG and then load it in the sprite.
But, there is maybe a better approch.

or, check here:
http://www.pyglet.org/doc/api/pyglet.image-module.html

you can see some information about pixel access.
this is about reading, but ImageData got a set_data() method too
http://www.pyglet.org/doc/api/pyglet.image.ImageData-class.html



On Mar 14, 1:51 am, avaitla16 <[email protected]> wrote:
> I am working on image processing and had a question. Suppose I have a
> list of pixels [(12,12,45) , ... , (255, 255, 255)] for some 2d image
> that is some height by width. What is the most efficient way to draw
> them to the canvas so that I can delete and change pixel colors
> quickly? If modification/deletion/addition of pixels and their values
> is important, what would be the best method for implementation in
> pyglet?
>
> Thanks for the Help,
> Anil

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to