LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling a bmp image

I need to scale a bmp image in the x-y directions independently of each other.  The zoom function doesn't work for my application because it locks the aspect ratio at 1:1.  I would like to import a bmp and have it scale automaticly to the size of a picture box on the front panel so that the image will fill up the picture box completely.
 
1. Does anyone know how to change the scaling independently?
2. Is it possible to convert a bmp image to excel data?  I also use the intensity chart function in this
    application, where an excel file containing data points is loaded in and displayed on the chart.  I
    noticed that the size of the excel data image scales itself to match the intensity chart are no matter  
    what the area is. 
 
Any ideas on this one?
 
Thanks,
 
Kirk Fabbri
Gentex Corp
Zeeland, MI 49464
0 Kudos
Message 1 of 4
(3,053 Views)
An  implementation I did once can be found here. It will stretch or "compress" the image as needed and can either maintain its aspect ratio or distort it to fit a specific size. The quality isn't great, since it's lossy, but it works for me.

I don't work with the intensity chart, so I can't help you with that.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,044 Views)
Try Image Toolbox at:
 
High quality image resize.
George Zou
0 Kudos
Message 3 of 4
(3,032 Views)
There was an image resize posted at the end of this thread.

As for writing out the BMP to Excel, yes, it's possible. All you need to do is write out the "image" element of the "image data" cluster output from the Read BMP File VI. This element is just a 1D array.
0 Kudos
Message 4 of 4
(3,029 Views)