Hi,
Im trying to do a "pygame.image.load()" and "pygame.image.tostring()" in wxImage. How do I do it? Is it even possible?
I tried to do something like this:
jpg = wx.Image('file.jpg', wx.BITMAP_TYPE_JPEG)
Data = jpg.GetData()
dData = "".join(Data)
and then when I try to do a "glTexImage2D" (in openGL) it crashes. Isnt that the same thing? What am I doing wrong?
Thanks for any help.
Astan
···
--
"Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."
Animal Logic
http://www.animallogic.com
Please think of the environment before printing this email.
This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free.