This answer assumes that you are not using the image tools, which are available from NI at extra cost. I have never used them. I have never worked on a project that was willing to buy them for tasks such as yours. I know for certain that those tools will allow you to do what you want to do without too much effort. That being said, let me offer an alternative.
If your images are monochrome you can convert them to pixmap arrays, put them in an Intensity Graph and be done with it. You just have to wire a grayscale colormap to the color table property of the intensity graph. Autoscale the X and Y axes and the image will always fit nicely. I have wanted to do the same thing with color, but no one at NI can tell me how to get the appropriate colormap from my
jpeg for wiring to the color table. As far as I have been able to discern, this approach is not suitable for color images. If you read a jpeg from a file, you can get the colormap, but wiring it to the color table property doesn't yield the desired result.
So I recommend using the function Unflatten Pixmap.vi to get your picture into matrix format. Next you have to decimate the matrix, removing columns and rows to make you image fit. To do this without distortion, you have to remove every other, or every 3rd, or every 4th, etc. in both directions. This limits the size of the resulting image to some whole number ratio relative to the original. If this is not sufficient for your needs, you will have to interpolate rows and columns to get decimation values that are not whole numbers. I'm going to attempt to write a vi to do that. Let me know if you want it and I'll send it to you when I am done. I have done the decimation part and it works very well. I am certain the interpol
ation will work, too.
jc
Mac 10.4
LV7.1
CLD