LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rotate PNG image with user defined angle

I tried rotating PNG image with attached code in LabVIEW 2016 version.

 

I took help from one of NI thread:

Rotating Graphics (Pixmaps) in LabVIEW 

http://www.ni.com/example/26943/en/ 

Now, I am able to rotate input image with user defined angle (in degrees).

 

You can take any PNG image with transparent background as a input file.

 

The image is with transparent background.

I want that image with transparent background to be shown in picture indicator.

It is currently showing white background.

 

Can somebody please help, how to achieve this.

 

Message 1 of 3
(3,157 Views)

use a mask rotate_with_mask2.PNG

 

 

1# use a mask to render transparency in a Labview Picture Plot e.g.

National Instruments\LabVIEW 2017\examples\Graphics and Sound\2D Picture Control\Using Mask with Picture.vi

 

2# use Darin K.'s .vis to save this mask layer as an alpha layer  32 bit .png

 

"https://forums.ni.com/t5/LabVIEW/Create-transparent-PNG-using-quot-Write-PNG-File-vi-quot/td-p/11397..."

0 Kudos
Message 2 of 3
(3,128 Views)

a bit more elaborated ...

mask-png.png

 

Message 3 of 3
(3,101 Views)