Compositing a QCView over an NSImageView
Compositing a QCView over an NSImageView
- Subject: Compositing a QCView over an NSImageView
- From: Renaud Boisjoly <email@hidden>
- Date: Wed, 03 Jan 2007 00:46:47 -0500
Hi there
My program uses a transparent window which is done the usual way of
setting the opacity of the NSWindow and all its content becomes
transparent. The content is a QCView which displays a Quartz Composer
composition. When I set the transparency of the window, the whole
composition becomes translucent.
In my preferences, I wish to do a preview of what the transparency
will be like when the program runs... but because my content is an
animated composition, I am displaying it in a QCView... so I cannot
composite this over my preference window which displays a simulation
of the screen. The preference window already displays a sort of
screen shot, over which I overlay a QCView to show both together. The
alpha of the composition is fine, but there is no Transparency I can
play with.
I know one cannot give a transparency to an NSView (or a QCView)
directly and that it has to be part of a Window to be translucent.
When my content was not animated and was just an NSImage, I could
composite the image on top of the view and all was fine.
How can I simulate the result of my Quartz Composition being made
transparent if it is not in a Window?
Is there a better way to composite a Quartz Composition onto another
NSView somehow? Because all this is already inside a window, I cannot
overlay another Window for this part of the window can I? It would
have to move at the same time as the parent Window... and not lag
behind. I'm sure there is a better way to do this.
Any ideas?
thanks
- arby
_______________________________________________
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