• 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: special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect?


  • Subject: Re: special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect?
  • From: Michael Watson <email@hidden>
  • Date: Tue, 27 Feb 2007 01:16:08 -0500

If you tried that method and it did not work, I'd imagine it's because QCView uses a hardware-accelerated surface. You could add a published image output port to your QC composition, and then ask for the value of that from code:

NSImage *frame = [yourQCView valueForOutputKey:@"image_output_key_name"];


-- m-s

On 27 Feb, 2007, at 06:30, Cide.Vincent.S wrote:

As is know to all, the QCView is derived from the NSView.
There is a method defined in NSView named the bitmapImageRepForCachingDisplayInRect:
and it returns a bitmaprep;
I wonder whether QCView can correspond to this method, then return a frame which it is rendering. Then we can use the returned bitmaprep to create a NSImage object then show it.
It seems that we can achieve the effect that we have a snapshot of the QCView object.
However , after I wrote some code, I failed. so I seek to verify whether this idea is practicable.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40bungie.org


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect? (From: "Cide.Vincent.S" <email@hidden>)

  • Prev by Date: Re: Help: Mac as a Terminal
  • Next by Date: Re: porting core data app to the dark side
  • Previous by thread: special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect?
  • Next by thread: porting core data app to the dark side
  • Index(es):
    • Date
    • Thread