Misha Nefedov
|
Re: RE: PtOsContainer moving image
|
Misha Nefedov
01/24/2011 8:54 AM
post82570
|
Re: RE: PtOsContainer moving image
PtOSContainer doesn't accepts transparent background -- just like the PtWindow.
I recommend placing your PtOSContainer as the first child of the PtWindow and making the OSContainer as big as the
window -- use anchors if you need too resize both in sync. Then place all of your widgets into the OSContainer.
|
|
|
Derek Leach
|
RE: RE: PtOsContainer moving image
|
Derek Leach
01/24/2011 9:54 AM
post82574
|
RE: RE: PtOsContainer moving image
Hi Andy,
Ok, it will never have transparent background, unless we misunderstood
here, we thought you were trying with a solid colour background or a
transparent background.
The reason is that the PtOSContainer uses offscreen memory to composite
the display, before flipping it to the screen, and thus since it is
already pre-composited, it cannot take into account the content behind
it (*).
Now, you can place the entire contents of the window in a PtOSContainer
(move up the hierarchy).
I am guess what you want is something similar to this:
Window -> pane (solid colour bkgd) -> buttons etc, draw stuff ->
then a PtOSContainer over top with transparent background
well, we would suggest this:
Window -> PtOSContainer (solid colour bkgd) -> buttons, etc draw
stuff -> another transparent pane with content with content
-Derek
(*) Now with surface memory, it is always possible to do alpha blending,
etc., but that approach is beyond the reach of the PtOSContainer, and on
systems w/o hardware accelerated alpha blend, it is quite slow.
-----Original Message-----
From: Andy Rhind [mailto:community-noreply@qnx.com]
Sent: January 24, 2011 12:59 AM
To: photon-graphics
Subject: Re: RE: PtOsContainer moving image
Derek:
Sorry about that - I knew exactly what version of the OS I was using :)
Its QNX6.5
Ive put together a simple example that shows the PtOsContainer wont
accept a transparent background. Its attached. This is the simplest
and the preferred solution, it would be perfect if you can get
transparent working.
I am putting a stand along demo together for the Video offscreen
drawing.
Thanks,
Andy
_______________________________________________
Photon microGUI
http://community.qnx.com/sf/go/post82560
|
|
|