Well, I don't really know what code to show since I don't know how to
get it to work in general.

self.image = image.load(name)
self.image.format = 'RGB'
self.image.pitch = 3 * self.image.width
self.data = self.image.data

And then I want to basically go through the image and change
individual pixels. But data is a set of strings, and I've got it
working to change individual pixel values but it's insanely slow
because of the overhead of using strings.


On Feb 19, 9:00 pm, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
> Seanzo wrote:
> > Hey, I'm loading an image and I want to access individual pixels and
> > change their colors accordingly. I can't see how to do this in the
> > ImageData class, as, whenever I try to access a string and set it to a
> > value, I get an error.
>
> Include code.
> -Luke
--~--~---------~--~----~------------~-------~--~----~
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