Actually, it appears I do not need pyglet at all, and I only ended up where I am because of a huge mistake on my part.
The reason I chose pyglet over PIL was because PIL couldn't save .dds files. Well, turns out pyglet doesn't save them either, and all the files i had been saving were actually PNGs, so the perceived advantage I saw in pyglet was actually just a big misunderstanding on my part. Oops. Thanks for the advice, I guess i'll just use PIL and save everything as PNG. Looks like preserving the DDS format is more trouble than it's worth. On Friday, April 18, 2014 1:17:30 AM UTC-7, Juan J. MartÃnez wrote: > > On 18/04/14 09:13, Gerald Thibault wrote: > > [...] > > This correctly scales the image to 48x64 and draws it to the window. How > > do I get the raw pixel data that was drawn to the window? I've been > > googling this for hours and have been unable to find a solution. I'm not > > even interested in drawing to the window, or using the sprite class at > > all, but I was unable to find any examples at all of how to upscale an > > image with independent scale values for x and y. This is the closest > > I've been able to get to an expected end result, but I can only get it > > in the window, I have no idea how to get those pixel values. Did I miss > > something glaringly obvious in the docs? All I want to do is scale an > > image and get the pixel data, I don't want to draw anything to the > > window (or have any window at all). > > Do you need pyglet at all? Why don't you use PIL* directly? > > - > > http://pillow.readthedocs.org/en/latest/reference/Image.html#PIL.Image.Image.resize > > - > > http://pillow.readthedocs.org/en/latest/reference/Image.html#PIL.Image.Image.getdata > > > Regards, > > Juan > > * Pillow instead > > -- > jjm's home: http://www.usebox.net/jjm/ > blackshell: http://blackshell.usebox.net/ > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
