AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Picturebox 16-bit

The forum is to discuss topics related to different areas of image processing and computer vision.

Picturebox 16-bit

Postby federigi » Tue Oct 11, 2016 12:42 pm

Hello
Windows 10 operating system, camera and imaging software source, 25 frames / sec
Using visual studio c #.
Problem: 16-bit Picturebox.
I acquire from camera images to grayscale I am viewing a monitor,
Form1 window icImagingControl1, next I would like to save an image in picturebox.
How do I insert the "PictureBox (of Aforge)" in Form1 that allows me inserting a 16-bit image?
The image I have available (buf) is obtained from "TIS.Imaging.ImageBuffer buf = GrabImage (TIS.Imaging.MediaSubtypes.Y16);"
how do I transfer it to the PictureBox?

Thank you
Dino
federigi
 
Posts: 2
Joined: Tue Oct 11, 2016 10:02 am

Re: Picturebox 16-bit

Postby andrew.kirillov » Tue Oct 11, 2016 3:06 pm

Hello,

federigi wrote:how do I transfer it to the PictureBox?

There is PictureBox.Image property. It accepts image objects. I have no idea about "TIS.Imaging.ImageBuffer", but you need to convert it to something PictureBox understands. For example, .NET's Bitmap.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Picturebox 16-bit

Postby federigi » Tue Oct 11, 2016 10:12 pm

Ok.
How do I position the PictureBox in Form.
Thank you.
federigi
 
Posts: 2
Joined: Tue Oct 11, 2016 10:02 am




Return to Image Processing and Computer Vision