ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using .net GDI functions in labview

Solved!
Go to solution

Hi,

I want to find out if I can do an image operation, using .net "GDI", which I've been told contains a gaussian blur function, which I want to perform.  I am familiar with activex usage in labview, properties/methods etc, and have used that quite a bit.  In browsing around the .net palette, there appears to be similar "property" and "methods", and an additional "constructor".  It appears I can choose from libraries, similar to activex.  But I do not see a "GDI" or image related library.  Does anyone know how to get at image related functions in .net?  Also, I was trying to find some examples of .net usage in the labview examples, but couldn't find any.  Are there any examples there or elsewhere that I may be missing?  

 

Thanks

 

Dave

0 Kudos
Message 1 of 4
(3,561 Views)
Solution
Accepted by topic author david_jenkinson

There are a couple of .NET examples that ship with LabVIEW. If you open the Example Finder and search for .NET you'll find 4 examples. Not many, grant you. As for your specific question, when you plop down the constructor you have to select the appropriate .NET assembly. A lot of the classes are in the "mscorlib" assembly that is in the list, though in your case you probably want the System.Drawing namespace. Your best bet is to find a working .NET example (such as this one) and that will tell you the steps you need to perform.

 

Addendum: You may also want to consider the image functions in LabVIEW, such as the stuff available in the Vision Toolkit.

Message Edited by smercurio_fc on 01-16-2009 12:59 PM
Message 2 of 4
(3,554 Views)

Thanks,

I did find those examples now.

 

We do have the vision development module, but there is no blur function.

0 Kudos
Message 3 of 4
(3,545 Views)

Actually, in case this post leads anyone astray, there IS the ability to blur using NI vision functions.  It is using the "IMAQ Convolute" filter.  I stumbled across this using vision assistant.

 

Regards,

Dave

0 Kudos
Message 4 of 4
(3,503 Views)