On Aug 4, 7:24 am, Mikael Lind <[email protected]> wrote:
> 2009/8/3 Richard Tew <[email protected]>:
> > mapImage = pyglet.image.create(w.width, w.height)
> > mapImage.set_data('RGB', w.width * 3, data)
>
> Try:
>
> mapImage.set_data('RGB', w.width * 3, data.tostring())
Thanks Mikael, eventually I managed to hit the right combination of
words to search for that described the reason for this solution in the
context of another problem. The pyglet documentation is so well done
and clean, but I never seems to find it sets me straight on little
things like these.
Result: http://i26.tinypic.com/2e5m5nl.jpg
Cheers,
Richard.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---