On 18 Nov 2008, at 11:38 pm, Tim Andersson wrote:


Sorry, forgot to say that I have looked at the IKPictureTaker and it isn't really what I'm looking for. I don't want the user to be able to choose a picture or anything like that, I just want to take a picture when the user clicks a button for example or when I call a method in my code. Is this possible?

I don't need to support pre-Leopard.


A cursory scan of the docs suggests to me that a good place to start looking would be QTCaptureDecompressedVideoOutput. This sends a CVBufferRef to the delegate during capture, and there are methods associated with that class to get basic information such as base address, row bytes, height and so on, which would allow you to wrap that buffer in a NSBitMapImageRep and from there to an NSImage and so on....

So, that's probably what I'd be initially pursuing if it were me, but take that with a pinch of salt as I might be way off.

hth,

Graham


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to