LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Example "Rotate Vase.vi"

Hi, There is an example posted by Christian in the "Picture Control" thread.

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true.

 

Somebody explain how the image is embedded in the picture indicator??

 

here is the VI

0 Kudos
Message 1 of 14
(5,114 Views)

The image is not embedded in the indicator.  The image data is saved in a constant at the beginning of the VI.

 

The image data was probably read from a jpeg, png, or bmp file  Read jpeg File in the Graphics format palette and send to an indicator which is a cluster.   Then the indicator changed to a constant and placed in this block diagram fully populated with the image data of this picture.

0 Kudos
Message 2 of 14
(5,096 Views)
I've tried to do as you say, trying to convert the indicator changed to a constant but the image is lost, please can you to put a practical example??
0 Kudos
Message 3 of 14
(5,087 Views)

Here is what you do in your new homemade VI.

 

I found there is one change that needs to be made in the rotate VI.  I used a jpeg and it gave me a 24 bit image data.  So the blue 2-D array in that VI, rewire it so that instead of using the 8-bit pixmap connector on the Flatten to and Unflatten from Pixmap VI's, use the 24-bit pixmap connector.

 

Message Edited by Ravens Fan on 10-21-2009 08:57 PM
Download All
0 Kudos
Message 4 of 14
(5,061 Views)

Hi Ravens Fan,

 

I use a png file and it gave me a 32 bit image data, but the the Flatten to and Unflatten  have only 24-bit pixmap connector, what I can do to solve this problem??

 

I necessarily have to use a png file.
0 Kudos
Message 5 of 14
(5,032 Views)

The issue is that the picture control and the flatten and unflatten VI's are designed to deal with transparency.  Search for 32 bit png in the forums.

 

I found this one thread that explains it.  http://forums.ni.com/ni/board/message?board.id=170&message.id=304236&query.id=279803#M304236

0 Kudos
Message 6 of 14
(5,023 Views)

The Unflatten Pixmap.vi will remove the alpha channel and give you a 24 bits image.

 

Rotate image.jpg

 

Unflaten pixmap.jpg

 

Jean-Marc

0 Kudos
Message 7 of 14
(5,022 Views)

Hi, I have this image that is a transparence and I need to rotate, I want to use the RotateVase.vi  example  but when I try to do this png image is 32 bits and the example of rotation muede only use up to 24 bits, it is possible to rotate an image transparent?

0 Kudos
Message 8 of 14
(4,994 Views)
You might be able to.  But you would have to create your own versions fo flatten and unflatten pixmap that doesn't strip off the alpha channel and works with 32 bit data in 2-D arrays.
0 Kudos
Message 9 of 14
(4,979 Views)

HOW??

0 Kudos
Message 10 of 14
(4,974 Views)