473,320 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Display an image grab from Matrox Morphis card to PictureBox

Hi,

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.ActiveMil). 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
  1.  
  2. ActiveMILApplication = CreateObject("MIL.Application")
  3.  
  4.  
  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)
  10.  
  11.  
  12. ActiveMILSystem.AutomaticAllocation = True
  13. ActiveMILDisplay.AutomaticAllocation = True
  14. ActiveMILGraphicContext.AutomaticAllocation = True
  15.  
  16. ActiveMILDigitizer.AutomaticAllocation = False
  17.  
  18. ActiveMILImage.AutomaticAllocation = False
  19.  
  20.  
  21. ActiveMILDisplay.Image = ActiveMILImage
  22. ActiveMILGraphicContext.Image = ActiveMILImage
  23.  
  24. ActiveMILDisplay.DisplayType = dispUserWindow
  25.  
  26.  
  27.  ActiveMILDisplay.UserWindow = Me.Handle().ToInt32()
  28.  
  29. If ActiveMILSystem.IsAllocated = False Then
  30.     ActiveMILSystem.Allocate()
  31. End If
  32.  
  33. If ActiveMILSystem.NumberOfDigitizers > 0 Then
  34.  
  35.     ActiveMILDigitizer.Image = ActiveMILImage
  36.  
  37.     If Not ActiveMILDigitizer.IsAllocated Then
  38.         ActiveMILDigitizer.Allocate()
  39.     End If
  40. End If
  41.  
How do I display the image in a PictureBox from this coding?
Your help is much appreciated.
Sep 11 '07 #1
1 3494
debasisdas
8,127 Expert 4TB
Question moved to .NET Forum.
Nov 3 '07 #2

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

Similar topics

1
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...
1
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. ...
14
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...
3
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. ...
1
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...
2
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...
2
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...
2
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...
2
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
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.