• 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: creating an NSImage from an NSMovie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating an NSImage from an NSMovie


  • Subject: Re: creating an NSImage from an NSMovie
  • From: Public Look <email@hidden>
  • Date: Mon, 16 Feb 2004 16:29:58 -0500

On Feb 16, 2004, at 4:10 PM, Benjamin Salanki wrote:

Hi,

I would like to create an NSImage from one single frame of an NSMovie.
could anyone point me in the right direction please?

thx,

Ben

Apple's sample at http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/ OpenGL_Movie.htm does exactly what you want. It renders each frame of a movie into an image (texture) which is then drawn with OpenGL. You can skip the OpenGL part and just use the image data to initialize an NSBitmapImageRep. See other samples for how to initialize an NSBitmapImageRep with image data and associate the rep with an NSImage.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >creating an NSImage from an NSMovie (From: Benjámin Salánki <email@hidden>)

  • Prev by Date: Re: how to save styled text
  • Next by Date: Re: Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
  • Previous by thread: creating an NSImage from an NSMovie
  • Next by thread: Re: creating an NSImage from an NSMovie
  • Index(es):
    • Date
    • Thread