Re: Rotating a QTCaptureView
Re: Rotating a QTCaptureView
- Subject: Re: Rotating a QTCaptureView
- From: Randall Meadows <email@hidden>
- Date: Fri, 8 Feb 2008 17:29:26 -0700
On Feb 8, 2008, at 2:32 PM, Randall Meadows wrote:
I'm using a QtCaptureView to preview a video input source. I need
to rotate the displayed video by 90°.
[snip]
What am I missing here?
Answering my own question, for posterity:
Implement the delegate method:
- (CIImage *)view:(QTCaptureView *)view willDisplayImage:(CIImage
*)image
{
return [image
imageByApplyingTransform:CGAffineTransformMakeRotation(90.0 * M_PI /
180.0)];
}
That's it. Easy, once you know where to look! (Like most things in
life.)_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden