• 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
Rotating a QTCaptureView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rotating a QTCaptureView


  • Subject: Rotating a QTCaptureView
  • From: Randall Meadows <email@hidden>
  • Date: Fri, 8 Feb 2008 14:32:56 -0700

I'm using a QtCaptureView to preview a video input source. I need to rotate the displayed video by 90°.

I've subclassed QtCaptureView, and implemented drawRect: as such:

- (void)drawRect:(NSRect)rect {
  NSAffineTransform *aft = [NSAffineTransform transform];
  [aft rotateByDegrees:90.0];
  [aft concat];
  [super drawRect:rect];
}

but that does nothing different than not subclassing the view in the first place (i.e., it still draws "normal").

What am I missing here?


Thanks! randy_______________________________________________

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: Randall Meadows <email@hidden>
  • Prev by Date: [Moderator] Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
  • Next by Date: Re: libPng.dylib: "file is not of required architecture"
  • Previous by thread: Question about Core Data Models and frameworks
  • Next by thread: Re: Rotating a QTCaptureView
  • Index(es):
    • Date
    • Thread