How to show a transparency png image always on the top

asked 2015-09-22 10:00:30 -0600

gwnudt gravatar image

updated 2015-09-22 10:46:29 -0600

I would like to show a transparent png image always on the top (1) the transparency parameter can be defined by users (2) it is always shown on the top

I also try to show a png image with transparent background. but the background is shown to be white.

Can anyone help to give me some idea and some example codes?

The background is that I would like to show a transparent logo image always on the top

edit retag flag offensive close merge delete



see, opencv is a computer-vision library, not a photoshop replacement.

i think, you're barking up the wrong tree.

berak gravatar imageberak ( 2015-09-22 10:29:27 -0600 )edit

actually, it is a part of some project, for example, i want to always show a transparent logo on the screen always on the top

gwnudt gravatar imagegwnudt ( 2015-09-22 10:44:48 -0600 )edit

here you can find an example source code to do that

sturkmen gravatar imagesturkmen ( 2015-09-22 10:48:29 -0600 )edit

look for the addweighted() function and how to blend two images

theodore gravatar imagetheodore ( 2015-09-22 12:05:19 -0600 )edit