11-05-2008 01:26 PM
i read a png file - a picture with transperent back ground - with READ PNG File and display it in my program using a Draw Flattened Pixmap function.
i get a very dark background- black coulour- in the picture created.
How can i resolve this problem???
Please give your suggestions
Many thanks in advance
RENN
Solved! Go to Solution.
11-05-2008 10:29 PM
11-06-2008 12:56 AM
11-06-2008 01:15 AM
11-06-2008 04:10 AM
11-06-2008 05:18 AM - edited 11-06-2008 05:19 AM
RENN,
Probably you monitor is too dark and you should just increase brightness a little bit?
Seriously, when you post such question - its always goot to include an example. In this case: a) image and b) source code snippet - how do you use it?
Look here - I haven't any big problems:
The only small problem that semi-transparency is not supported. You should set threshold (which is 127 by default).
See attached example.
with best regards,
Andrey.
11-06-2008 05:46 PM
Hello!
I have the same problem. In your example I don't see the half-transparency of the picture, but I want see the same picture as drown in original.
Can anybody help?
Thank you, Eugen
11-06-2008 05:51 PM
In Andrey's example, they didnt show half-transparency, they showed full transparency.
What is the problem you are having? Their code works fine.
11-06-2008 05:53 PM
11-06-2008 06:01 PM - edited 11-06-2008 06:02 PM
I'm programming a CAR PC software and need this functionality. Compare the original Icons and imported to the Front Panel and you will see what I mean.