Re: special NSView inheritance correspond to the bitmapImageRepForCachingDisplayInRect?
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