473,734 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display an image grab from Matrox Morphis card to PictureBox

5 New Member

Currently I'm developing a software using VB.net that can grab an image using Matrox Morphis card and display it in a PictureBox. The software can grab the image already and display it in the form (Imports Matrox.ActiveMi l). But the problem is I need to display the image in the PictureBox but I don't know how.

The coding to grab the image is as follows:

Expand|Select|Wrap|Line Numbers
  2. ActiveMILApplication = CreateObject("MIL.Application")
  5. ActiveMILSystem = ActiveMILApplication.CreateObject("MIL.System", False)
  6. ActiveMILDigitizer = ActiveMILApplication.CreateObject("MIL.Digitizer", False)
  7. ActiveMILImage = ActiveMILApplication.CreateObject("MIL.Image", False)
  8. ActiveMILDisplay = ActiveMILApplication.CreateObject("MIL.Display", False)
  9. ActiveMILGraphicContext = ActiveMILApplication.CreateObject("MIL.GraphicContext", False)
  12. ActiveMILSystem.AutomaticAllocation = True
  13. ActiveMILDisplay.AutomaticAllocation = True
  14. ActiveMILGraphicContext.AutomaticAllocation = True
  16. ActiveMILDigitizer.AutomaticAllocation = False
  18. ActiveMILImage.AutomaticAllocation = False
  21. ActiveMILDisplay.Image = ActiveMILImage
  22. ActiveMILGraphicContext.Image = ActiveMILImage
  24. ActiveMILDisplay.DisplayType = dispUserWindow
  27.  ActiveMILDisplay.UserWindow = Me.Handle().ToInt32()
  29. If ActiveMILSystem.IsAllocated = False Then
  30.     ActiveMILSystem.Allocate()
  31. End If
  33. If ActiveMILSystem.NumberOfDigitizers > 0 Then
  35.     ActiveMILDigitizer.Image = ActiveMILImage
  37.     If Not ActiveMILDigitizer.IsAllocated Then
  38.         ActiveMILDigitizer.Allocate()
  39.     End If
  40. End If
How do I display the image in a PictureBox from this coding?
Your help is much appreciated.
Sep 11 '07 #1
1 3527
8,127 Recognized Expert Expert
Question moved to .NET Forum.
Nov 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Omer Ahmad | last post by:
Hi All, I've been working with python for about 6 months now, and have been very impressed with the size and scope of the libraries. I have, however, run into a bit of a problem. I discoverred Marc Hammonds PyWin32 extensions, (whcih are awesome) and Tim Golden's WMI wrapper for accessing the Windows Management Instrumentation (Win32_Classes) but now I have been asked to remove these dependandcies and still obtain machine...
by: E.F. | last post by:
I have a Matrox RT.X100 graphic card connected to a digital camera. Now i need to develop a Vision Robotic System in C++ and i need to use some DLL to caprture frames from the graphic card. Active MIL is compatible with my hardware? There is some other solutions to interact with your Matrox Driver simply? Special Thanks
by: rogerclive | last post by:
Perhaps, there is no bigger sleazy company in the entire Maple Republic ( Canada ) than Matrox Graphics Inc. I paid $100+ through my nose circa 1999 for Matrox Millenium II and Mystique. It works well under NT4.0 however, a month ago I upgraded to Win 98. Guess what? The main feature in the Matrox Inc Video cards was their desktop, and
by: E.F. | last post by:
I have a Matrox RT.X100 graphic card connected to a digital camera. Now i need to develop a Vision Robotic System in C++ and i need to use some DLL to caprture frames from the graphic card. Active MIL is compatible with my hardware? There is some other solutions to interact with your Matrox Driver simply? Special Thanks
by: Dev | last post by:
Dear Friends, I am passing the image name, size (in bytes) and imgaeformat (like jpg or bmp or pdf) through the network. I want display the image into picturebox without saving image files into Hard disk. Just display the image into PictureBox.... Is it Possible? If so how do to this?
by: Bradley1234 | last post by:
Seems simple but Im missing something. In a C# form Ive got a picturebox and a button I have the File Open dialog linked to the button, but Im drawing a blank on how to take the stream and push the thing onto the picturebox. Here is the code, tia OpenFileDialog fileChooser = new OpenFileDialog();
by: Scott Durrett | last post by:
Here's my problem. I have a Windows application that has a picturebox. I need to populate the picturebox from a image from a URL. Does someone know how to do this? I don't have the luxury of the imageURL property that I have from a web application. thanks in advance. Scott
by: barbara_dave | last post by:
Hi, all, I have a form which has a picturebox control on the top and several buttons on the bottom. I want to change the form size smaller at run time and let all buttons display overlap the image of the picturebox. But when I was making the form smaller, the buttons were covered by the image. How to show the buttons overlap the picturebox? Thanks!
by: Liu Feng | last post by:
How to display a 32bits icon in pictureBox or button? It can be displayed correct in toolbar, but not work in pictureBox and button. Who can help me? -- Thanks, LiuFeng
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.