• 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: Dimensions of a movie?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dimensions of a movie?


  • Subject: Re: Dimensions of a movie?
  • From: August Trometer <email@hidden>
  • Date: Tue, 22 Feb 2005 12:56:27 -0500

Thanks for the reply!

My bad, here, though. I should have been more explicit.

What I'd like to do is get the size of the movie without loading it into an NSMovieView first and it simply may not be possible. I'm not using an NSMovieView to display the movie, and creating one just for the pixel dimensions seems unnecessarily wasteful in terms of memory and processing, especially for large movie files.

August






On Feb 22, 2005, at 12:00 PM, Douglas A. Welton wrote:

August,

If you want the dimensions of the NSMovieView, then you can simply use the
-bounds method to get the rectangle/area used within the window. If you
would like to know the actually dimensions of the QuickTime movie that is
playing, use the -QTMovie method to get the Movie pointer, then call
GetMovieNaturalBoundsRect() to get the dimensions of the movie.


Hope that helps...

later,

douglas

on 2/22/05 11:02 AM, August Trometer at email@hidden wrote:

Just wondering if there's an easy way to get the pixel dimensions or
size of a NSMovie, much like you can with NSImage.

Thanks!

August


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Dimensions of a movie?
      • From: "Douglas A. Welton" <email@hidden>
References: 
 >Re: Dimensions of a movie? (From: "Douglas A. Welton" <email@hidden>)

  • Prev by Date: Re: NSPopUpButton item size
  • Next by Date: Re: Works on 10.3, not 10.2
  • Previous by thread: Re: Dimensions of a movie?
  • Next by thread: Re: Dimensions of a movie?
  • Index(es):
    • Date
    • Thread