LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zoom a picture

I'd like to be able to allow a user to zoom in and out of a picture displayed on a labview front panel. Is this sort of thing only possible with IMAQ? Is there a relatively simple example available that demonstrates how to do this?
0 Kudos
Message 1 of 10
(7,668 Views)
Hello
It is nor clear what type of picture are you talking about.

Perhaps you should look at ../examples/picture/demos.llb and pictctl.llb. There are a couple examples about zooming.

Hope it helps
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 2 of 10
(7,649 Views)
Image toolbox provide high quality image resize for Picture control.

http://www.geocities.com/gzou999/imgtool.htm


George Zou
George Zou
0 Kudos
Message 3 of 10
(7,641 Views)
George,

I did download image toolbox and I do like it. Couple of questions:

1. What are licensing requirements for distributing vi's using the toolbox
2. I notice that the zooming always occurs with respect to the upper left corner of the picture. Is there anyway to make it zoom about a particular point in the picture. For example the user may want to zoom such that everything expands about the center of the picture

Thanks,
Jim
0 Kudos
Message 4 of 10
(7,637 Views)
No license required for your client.

You may distribute your applications (exe, dll or VI/llb) with my VIs upto 1000 copies (each application).

If you want to distribute your application in VIs/llb with my VIs, you have to make your client aware that if they use my VIs in the project other than yours, there is a copyright issue.

Zooming point is just a redraw issue. For example, if you want zoom about the cursor point,
and the cursor is at (10, 10), assume the top-left corner is (0, 0), and your picture size
is 20x20, after zooming, you want to draw your picture starting at (-10,-10).

George Zou
http://gtoolbox.yeah.net
George Zou
Message 5 of 10
(7,627 Views)

Hi George,

 

I saw this old issue on the forum and it looks like your Image toolbox is exactly what I need.

It's been a long time. Can I still download this toolbox ? (where ?)

 

Thanks in advance. 

0 Kudos
Message 6 of 10
(7,034 Views)

The new address is:

 

http://webspace.webring.com/people/og/gtoolbox

 

 

By the way, this is a very old thread.  Latest LabVIEW already has a zoom function build-in for Picture control.

Zoom.png

 

 

 

Depend on what version you're using, some version doesn't work well when shrink.  And not friendly with 32 bit image.

 

 

George Zou

 

George Zou
0 Kudos
Message 7 of 10
(6,988 Views)

OK,

 

Thank you for that.

 

BR,

Mentos

0 Kudos
Message 8 of 10
(6,943 Views)

Hi George,

 

I need to scale a jpg picture like the one attached to about 10 percent of its original size.

Before I purchase the Image toolbox (in order to use only the resize vi) I have to be sure the resulting picture is sharp enough to print (on a lable) and I don't get pictures like the "bad one" attached.

 

Is there anyway to garentee this ? can you send me some kind of demo etc. ?...

 

Download All
0 Kudos
Message 9 of 10
(6,914 Views)

badOne.jpgIT.jpg

 

It would be looks like the one on the right.

 

George Zou

http://webspace.webring.com/people/og/gtoolbox/

 

George Zou
0 Kudos
Message 10 of 10
(6,898 Views)