Have u tried QPixmap?
 Re: How to display 16 bit grayscale pictures?
 Re: How to display 16 bit grayscale pictures?
		Have u tried QPixmap?
 Novice
					
					
						Novice
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
    
       
    
    
    
    
   Re: How to display 16 bit grayscale pictures?
 Re: How to display 16 bit grayscale pictures?
		I've used QImage because I want to modify the pixels.
 
    
    
       
    
    
       
    
    
       
    
    
    
    
   
    
    
       
    
    
    
       
    
    
       
    
   Re: How to display 16 bit grayscale pictures?
 Re: How to display 16 bit grayscale pictures?
		So convert the image to QPixmap and display it.
 Novice
					
					
						Novice
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
    
       
    
    
    
    
   Re: How to display 16 bit grayscale pictures?
 Re: How to display 16 bit grayscale pictures?
		To point it out I don't have a problem to display pictures but I don't know what Format I should use.
With qRGB(value, value, value) do I only get a 8 bit grayscale, don't I?
Last edited by reimer; 20th August 2008 at 15:51.
 Novice
					
					
						Novice
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
    
    
   Re: How to display 16 bit grayscale pictures?
 Re: How to display 16 bit grayscale pictures?
		You can only display 8-bit gray values on a standard computer screen, so you need to convert your data to 8 bit first. You can use adaptable min and max values to rescale. This way you can keep the original 16 bit in memory and let the user choose the scaling limits interactively.
I use QImage::Format_Indexed8 with a color map where the R,G,B components are always equal to eachother.
Bookmarks