Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a zoomed image

I am using Vision for Visual Basic. I have a cwimaqviewer control that contains an image and is zoomed. When I write the image in the viewer control to a file, the resulting image in the file is not zoomed. I would like to write the zoomed image. Is this possible? If so, how? I am currently using the line below to write the image:

Me.CWIMAQVision1.WriteImage Me.CWIMAQViewer1.Image, strImgFile, cwimaqFileJPEG, CWIMAQViewer1.Palette

Thanks.
0 Kudos
Message 1 of 2
(3,039 Views)
bep -

The zooming of an image is just for display purposes and doesn't modify the image, which is why it's not being written to file.

To modify the image so that it appears zoomed in, use CWIMAQVision1.Resample2 with the desired height and width, and then write that image out to a file.

Greg Stoll
IMAQ R & D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 2
(3,039 Views)