Gordon,
Would you post a snippet of your code. I'm curious as to how you're
approaching this.
regards,
douglas
On Jun 5, 2008, at 9:26 PM, Gordon Apple wrote:
After receiving this, I tried something similar for clipping.
After I
cut in the filter, it worked for a few seconds, then
Here it is. There can be two capture views that use this (one within
the main presentation window plus a miniature in the A/V inspector panel),
or switch to one capture view in a separate video window. We hope to
eventually encode and stream same video.
I'd like to get control of the
Ben,
one more suggestion - subclass the QTCaptureView and add a CALayer.
Then, do your drawing on the CALayer, as opposed to the the
QTCaptureView's Layer.
I haven't tried this myself, so it may not work... but if it does, it
provides a way for you to do your drawing without having to
After receiving this, I tried something similar for clipping. After I
cut in the filter, it worked for a few seconds, then slowed to crawl, then
crashed. The images from the internal iSight are large. My theory is that
all those NSImages (and associated caches) simply overwhelmed the
And then what can you do with it? Although I've been able to rotate the
image with a transform, I still haven't figured out how to clip the image to
a Bezier. You can't focus and draw into a CIImage like you can a NSImage.
If it were the latter, I could just use NSBezier setClip. After
Gordon:
I think view:willDisplayImage: is the way to do it, although it is a
bit kludgey in my opinion since you have to convert to something
drawable and then back. Attached is the code I worked up. It should
work on 10.4 and 10.5. All it does is draw a centered rounded square
over