I am sory for my question.

I have image data in buffer I want to save image in my computer by don't use library.
(I use python 3.1)
Thank you so much.

I am sory for my question.

I have image data in buffer I want to save image in my computer by don't use library.
(I use python 3.1)
Thank you so much.

Well, like any other data

with open(filename, "wb") as fileout:
    fileout.write(data)

I think he ment printing image just like printing plain txt files.

No you cant print image like that. Thay can be worked on and as Gribouillis stated. You can read in work on it, then save the image.

Using PIL module or Image module will give you very interesting pic manipulation methods. croping,scalling,alpha,color changing, just like photoshop does.

This code use in Blender 2.5 I have link my project.
http://www.mediafire.com/?3226iywggolse53

This project open by program Blender. download program:
http://www.blender.org/download/get-254-beta/
(Blender 2.55 Beta Installer (23 MB))

Install program blender success.
And double click my project.

Go to menu Game-->Start Game Engine.
Use see code python in right hand.

And see error in command window.

Thank you very much for helping.
I appreciate very much.

This article has been dead for over six months. Start a new discussion instead.