LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resizeing 2D PICTURE image with transparent background

Solved!
Go to solution

Hallo !

I need to resize several 2D PICTURE indicators showing images with transparent background. I would like tu use the "zoom Factor" property.

Unfortunately I have found that appling a Zoom factor other than 1 , the trasparent background (set using the mask in image components) is set back to the original color.

Is it  a bug or there is something worng in my programming?

 

Thanks in advance.

 

Luca Nitopi

0 Kudos
Message 1 of 6
(456 Views)

No, I don't see any troubles with transparent background and alpha:

alpha_check.gif

Show your code, please.

Message 2 of 6
(436 Views)

Hallo!

Thank you for your kind answer.

My problem is that I have to load images from PNG files with transparent background.

Using standard load function transparency information is lost 

Luca_Nitopi_0-1713338269261.png

 

Using "create mask" function I can show images with transparency, but only with "zoom factor =1" :

 

Is there something wrong in loading files?

 

Thank you!

 

Download All
0 Kudos
Message 3 of 6
(382 Views)

@Luca_Nitopi wrote:

 

Is there something wrong in loading files?


 

you may have a look at:

https://forums.ni.com/t5/LabVIEW/Best-way-to-retrieve-mask-info-from-picture-also-Doom/m-p/4013618#M...

 

0 Kudos
Message 4 of 6
(367 Views)
Solution
Accepted by topic author Luca_Nitopi

@Luca_Nitopi wrote:

 

 

Is there something wrong in loading files?

 

 


You should pass alpha mask, the following snippet could be helpful for you:

alpha_check2.png

seems to be OK:

alpha_check2.gif

 

Message 5 of 6
(361 Views)

OK. Thanks!

0 Kudos
Message 6 of 6
(337 Views)