08-26-2008 01:28 PM
Hello,
Does anyone know how to read a WMF (Windows MetaFile) in Labview 8.2?
Regards,
Kaspar
08-26-2008 01:33 PM
Image Toolbox ($) supports bmp, gif, jpg, png, tiff, wmf, emf, ico, etc. file formats. Support 1, 4, 8, 16, 24, 32 and 48 bit images.
08-26-2008 01:44 PM
Hello,
Yes I know about the image toolbox, it costs money, but the process that the company I work for is very time consuming/ etc. Does anyone have something that I could get for free?
Regards,
Kaspar
08-26-2008 03:36 PM - edited 08-26-2008 03:36 PM
You can try using .NET.
using System.Drawing;
using System.Drawing.Imaging;
...
Image i = Image.FromFile("InputFile.wmf" );
What exactly are you trying to do with the wmf file?
08-26-2008 03:46 PM
Hello,
I will try the .Net and let you know what happens. I am trying to do image capture from a spectrum analyzer and it only outputs gifs and wmf files. I want to be able to see them in labview.
Regards,
Kaspar
08-26-2008 04:03 PM
You can also just use the Bitmap class:
08-27-2008 07:28 AM
Hello,
I am a little bit slow this morning. Where on the block diagram do you find the various classes that you mention above? I have gone to the application control pallette and selected a property note and then right clicked to Select a class and got lost. There are alot of options for finding the classes.
Regards,
Kaspar.
08-27-2008 09:02 AM
From left to right you have a .NET constructor and a .NET property node. Both items are in the Connectivity -> .NET palette. The front panel has a .NET container and in the container is a picture box, which is available in the .NET & Active X palette.
For the Bitmap class:
08-27-2008 10:41 AM
Hello,
Thanks for the response.:smiley very-happy: I got the code to work that displays the WMF file in a picture box. The next step in the adventure iis to save the data as a BMP file so that the screenshots of the test equipment I am working on is all in a consistent format, which is BMP.
Regards,
Kaspar!
08-27-2008 10:44 AM