LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to resize bmp?

I can read a bmp and display it.
but if i load a 1024*768 is too big to display.
How do i resize it into a smaller window?
I mean how to make a big graph fit to a smaller window?
 
(the vi I found in forum)

Message Edited by nicesg on 05-03-2006 09:52 PM

0 Kudos
Message 1 of 13
(6,899 Views)

Modified your VI to shrink the image.

Use the zoom factor property node as shown

For example, to decrease the size of the image to 50% of its original size, wire a value of 0.5 to this property. To increase the size of the image to 200% of its original size, wire a value of 2 to this property.

Its optional if you want to use the draw area size property.

hope this helps

Regards,

Dev

0 Kudos
Message 2 of 13
(6,834 Views)

Smiley Very Happy

thanks Dev, that is what I need!

but I am still thinking change it more suitable zooming, maybe...it can increase with or high individually...

I mean I create a control before (draw area size) it will use handle to change size...

0 Kudos
Message 3 of 13
(6,819 Views)
how about this
0 Kudos
Message 4 of 13
(6,815 Views)

well, stretching in one direction( height, width) cannot be done with picture function in LabVIEW. i am not aware if there are any addon toolkits for achieving this.

and i could not open your Attached VI. it must be in LabVIEW 8.0 or higher Smiley Sad

0 Kudos
Message 5 of 13
(6,814 Views)
Hello,
I had to handle that problem before & made this VI. The Main-VI is "load and scale picture 24-Bit Map V 2.vi" and the work-doing Sub-Vi is "Scale down V 2.vi". Some of the comments are in german, I hope this doesn't matter too much.
And I have to admit, it's not very fast.
Dave
Greets, Dave
0 Kudos
Message 6 of 13
(6,801 Views)
An  implementation I did once can be found here. It will stretch or "compress" the image as needed and can either maintain its aspect ratio or distort it to fit a specific size.

___________________
Try to take over the world!
0 Kudos
Message 7 of 13
(6,796 Views)
Try Image Toolbox
George Zou
0 Kudos
Message 8 of 13
(6,789 Views)
thanks guys!
I am trying use (zoomfactor) contral (drawareasize).
it is not working...
 
still trying...
 
hi, Dev, I use my company's labview8. I do not have labview8 also. = )
0 Kudos
Message 9 of 13
(6,769 Views)

Smiley Very Happy

hi,guys, I get it!!

try this!!

Robot Very Happy

0 Kudos
Message 10 of 13
(6,765 Views)