LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Zoom a bitmap in canvas(cvi 7.0)

Hello,

If load a bitmap into canvas , can just zoom the image object itself but not change the canvas ?

David
0 Kudos
Message 1 of 3
(3,538 Views)
You can, but you have to keep redrawing the bitmap each time you want to zoom. By manipulating both the source rect and destination rect that you pass to the CanvasDrawBitmap function you can zoom the bitmap. Having said that, you'll probably find that the results are less than desirable, since zooming the same bitmap again and again will not let you see a region of interest any more clearly. It will only make it more distorted.

Luis
NI
0 Kudos
Message 2 of 3
(3,538 Views)
Hello David,

Also check out this example program from our website.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3F0E356A4E034080020E74861&p_node=DZ52148&p_source=External

Thanks!

Wendy L.
National Instruments
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(3,538 Views)