Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bilt HIView to Offscreen bitmap




On Mar 13, 2007, at 1:56 PM, Jeff Sparks wrote:

I'm trying to integrate Flash (swf) content into a rather large
(full-screen) Carbon application.  The Flash content needs to be drawn
as an intermediate layer; some non-Flash buttons must appear on top,
for example.  The plan is to draw Flash into a hidden window, then
blit the contents of that window into an offscreen buffer (at which
point I'll have full control of rendering it).

Another design that you might consider would be to use three windows bound together in a window group (or, if your window is fullscreen and never moves, you might not even need the window group). You could have backing window that displays content behind the flash animation, an overlay window for displaying the WebView that is transparent elsewhere, and another overlay window above the flash window for displaying buttons above the flash window that is transparent elsewhere. This would allow the window server (and the GPU) to handle all of your compositing needs, and you wouldn't have to play any games with playing the flash animation into a separate window and capturing the results.


This would only work if your app is flexible enough to allow moving the buttons that should be visible above the flash animation into a separate window.

-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Bilt HIView to Offscreen bitmap (From: Jeff Sparks <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.