Hi,

I am looking for original camera.py but I can't find it... could
somebody provide a link for it?

Thanks nad best regards,

2008/8/13 Alex T. W. LEUNG <[EMAIL PROTECTED]>:
> Hi maemo developers,
>
> I notice that there was an email with the captioned subject from D.
> Scott Brown last email.
>
> The below code fragment works from me, see if it helps for anyone who
> are interested in enhancing the camera.py example.
>
> def buffer_cb(pad, buffer):
>        # Here you have a chance to do something with the image buffer
>        w,h=320,240
>        print buffer.size
>        im = Image.frombuffer('RGB', (w,h), buffer.data, 'raw', 'RGB',
> 0, 1)
>        im.save("foo2.jpeg", "JPEG")
>        return True
>
> Alex Leung.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This message (including any attachments) is for the named
> addressee(s)'s use only. It may contain sensitive, confidential,
> private proprietary or legally privileged information intended for a
> specific individual and purpose, and is protected by law. If you are
> not the intended recipient, please immediately delete it and all copies
> of it from your system, destroy any hard copies of it
> and notify the sender. Any use, disclosure, copying, or distribution of
> this message and/or any attachments is strictly prohibited.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>



-- 
J. Manrique López de la Fuente
http://www.jsmanrique.es
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to