Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[directfb-users] Re: SetScreenLocation on overlay problem
Quoting Selwyn Tang:
> Hi all,
>
> On my CLE266 board, I rendered an image to the primary layer and
> requested for the overlay layer. The overlay layer was initially
> covering the whole primary layer, and after changing its opacity to,
> say, 0x80, it showed the underlying primary layer that was shaded by it.
> All things looked good.
>
> But when I tried SetScreenLocation on this overlay layer, no visual
> change was resulted. I suppose the effect would be that only a portion
> of the primary layer is covered by the overlayer, and only that portion
> is shown shaded. I want to play a video on that portion, while leaving
> the other part of the screen unaffected.
SetScreenLocation() is supposed to do that, but you need exclusive access
to the display layer.
> Is my result normal? I learn that color keying can be used to do what I
> want. But I don't know the concept of it. So, can anyone offer me some help?
Color keying can be used to give the rectangular layer a custom shape.
It's no replacement for SetScreenLocation(), because it doesn't scale
the video.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
Convergence GmbH
--
Info: To unsubscribe send a mail to ecartis@directfb.org with
"unsubscribe directfb-users" as subject.
Home |
Main Index |
Thread Index