ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with READ PNG FILE

Solved!
Go to solution

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

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 1 of 17
(5,186 Views)
0 Kudos
Message 2 of 17
(5,157 Views)
its better if u give suggestions coz...i dont mind asking a question till it's answered be someone
Kudos always welcome for helpful posts 🙂
0 Kudos
Message 3 of 17
(5,150 Views)

Hi ..

 

 As you said i tried to read a PNG picture with transparent background but i didnt experience any dark backgroung after reading just check by changing the value of transparency thrash in read PNG file.

0 Kudos
Message 4 of 17
(5,145 Views)

"RENN" <x@no.email> wrote in message
news:1225955412767-804492@exchange.ni.com...
> its better if u give suggestions coz...i dont mind asking a question till
it's answered be someone

But we do mind.


Message 5 of 17
(5,128 Views)
Solution
Accepted by RENN

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.

Message Edited by Andrey Dmitriev on 11-06-2008 12:19 PM
Download All
Message 6 of 17
(5,119 Views)

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

0 Kudos
Message 7 of 17
(5,080 Views)

In Andrey's example, they didnt show half-transparency, they showed full transparency.

What is the problem you are having? Their code works fine.

Cory K
0 Kudos
Message 8 of 17
(5,076 Views)
Can't You see the difference between original and imported picture? The blure effect?
0 Kudos
Message 9 of 17
(5,074 Views)

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.

 

 

Message Edited by Eugen Graf on 11-06-2008 06:02 PM
Download All
0 Kudos
Message 10 of 17
(5,066 Views)