• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rotating a QTCaptureView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Rotating a QTCaptureView
      • From: Nicko van Someren <email@hidden>
References: 
 >Rotating a QTCaptureView (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: What's the story with OSAScriptController and OSAScriptView.
  • Next by Date: Re: Catching Cocoa application Crash
  • Previous by thread: Rotating a QTCaptureView
  • Next by thread: Re: Rotating a QTCaptureView
  • Index(es):
    • Date
    • Thread