read / write CCSprite texture to device

read / write CCSprite texture to device
0.0 0


Hi guys.

I am developing an app (IOS to begin with) that uses the camera. For this purpose I have a couple of questions:

  1. How do I write the camera-image to the app folder at runtime?
  2. How do I read the image from the app folder and into my game as a CCSprite at runtime?

I have tried different ways and I have something working, but it seems to be very time consuming, and memory consuming while loading from the app folder.
I dont need alpha so that might lightening the load process I suppose?
Could I read/write in pvr format? I have only tried to use JPG.

Thanks in advance for your help