From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resizing image

Hi, silly question, but i can not find an answer anywher...

I am loading a BMP file into labview which is 848*600 in size, but i need
to display it in a 424*300 window. I tried to use the image attributes to
set the size of width/height as well as of the displayed area, but it has
only changed the size of the area, not the size of the image. I have to keep
the whole image, but size it down to fit the available window. Many thanks
in advance,
-FRH
0 Kudos
Message 1 of 3
(2,607 Views)
In article <3980a451@newsgroups.ni.com>,
"FRH" wrote:
>
> Hi, silly question, but i can not find an answer anywher...
>
> I am loading a BMP file into labview which is 848*600 in size, but i
need
> to display it in a 424*300 window. I tried to use the image attributes
to
> set the size of width/height as well as of the displayed area, but it
has
> only changed the size of the area, not the size of the image. I have
to keep
> the whole image, but size it down to fit the available window. Many
thanks
> in advance,
> -FRH
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 2 of 3
(2,607 Views)
Oops...I was trying to load an image in the same manner that you were,
and didn't have any success resizing the image. If your image is one
you don't need to load programmatically, however, you can try this.
Place an OLE object on your front panel (In ActiveX -> Container).
Right click on the container. Select Insert ActiveX Object...

In the selection list at the top, select Creat Object From File, and
select the file. You can then resize the image on the front panel, and
the bitmap will be resized as well.

Mark

In article <3980a451@newsgroups.ni.com>,
"FRH" wrote:
>
> Hi, silly question, but i can not find an answer anywher...
>
> I am loading a BMP file into labview which is 848*600 in size, but i
need
> to display it i
n a 424*300 window. I tried to use the image attributes
to
> set the size of width/height as well as of the displayed area, but it
has
> only changed the size of the area, not the size of the image. I have
to keep
> the whole image, but size it down to fit the available window. Many
thanks
> in advance,
> -FRH
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 3
(2,607 Views)