 WSalas
		
			WSalas
		
		
		
		
		
		
		
		
	
			10-21-2009 03:05 PM
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
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			10-21-2009 04:10 PM
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.
10-21-2009 04:48 PM
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			10-21-2009 07:55 PM - edited 10-21-2009 07:57 PM
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.

10-22-2009 10:11 AM
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??
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			10-22-2009 10:27 AM
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
 J-M
		
			J-M
		
		
		
		
		
		
		
		
	
			10-22-2009 10:27 AM
The Unflatten Pixmap.vi will remove the alpha channel and give you a 24 bits image.
 
Jean-Marc
10-22-2009 03:33 PM
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?
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			10-22-2009 04:11 PM
10-22-2009 04:22 PM
HOW??