LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize generic image

What is the most efficient way of resizing a generic image in CVI (by generic I mean bmp, jpg, png, etc). The image won't be in a control or on a panel so resizing the control won't affect it, I actually need to resize the image itself.

 

Any thoughts?

0 Kudos
Message 1 of 3
(3,544 Views)

using the NI Vision library and calling imaqReadFile(), imaqResample(), imaqWriteFile(). works out of the box with bmp, jpeg, png and tiff images. of course, this means that you need a license for NI Vision.

 

now you might find some free image processing library on the net, maybe something more oriented to image manipulation than image processing...

0 Kudos
Message 2 of 3
(3,536 Views)
...and I don't have the vision license. The only thing I've come up with is to create a dummy panel with a picture control, paste in the image, resize the control and then save the control to a new image file and discard the dummy panel. It just seemed extremely inneficient to me.
0 Kudos
Message 3 of 3
(3,527 Views)