From the CamLibCaptureCallbackFunc callback, you are passed data in
through bufP. The callback may be used multiple times, so you need to
save your buffer data incrementally. You know that capture is complete
when your callback gets called with a size specified as zero. At this
point, you could simply write your data to a file with the VFS
functions and have a BMP file. Probably you'd want to be saving this
as a JPEG though. In the application I'm working on, we use the
jpegARMlet library (which has been posted on this newsgroup a few
times) to encode the data as a JPG file. The jpegARMlet library comes
with a few examples which would show you how to write the data to a
file using the library. As you know, the new SDK that came out with
the Zire 72 now exposes the PhotoAPI to do this with Palm native
functionality, but I haven't tried it using this method yet. It'd be
nice to try it out, but there are too many other things to get done to
invest time in switching to a new encoding technique when the current
one already works.

Adrien.

Tuesday, June 8, 2004, 10:12:55 AM, you wrote:


SC> "Adrien Regimbald" <[EMAIL PROTECTED]> ha scritto nel messaggio
SC> news:[EMAIL PROTECTED]
>> I'm afraid that I was a bit mixed up. I thought you were trying to
>> save a photo from the camera.
SC> Yes I'm trying to save a photo from a camera, but first I've tried to open
SC> an jpg image and save it and it's all ok, now I've a lot of problem to save
SC> a photo from a camera, when the image is on the screen I don't know how can
SC> I save it.
SC> Also the example CameraV2 from pamOneSdk don't save the image but only
SC> capture it, so have you an idea how save it?

SC> Thanks




--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to