How to Copy an Integer Array into A Picturebox

How to Copy an Integer Array into A Picturebox

Post by salsipiu » Wed, 14 Dec 2005 04:02:16


Hello Experts,

I am using a frame grabber to get an image from a camera. I access the
frame grabber via a DLL function (WP13SaperaGetImage ---See Below)
I send an array by Reference to the DLL and get back an array with
Image data. I would like to copy the data into a picturebox to see the
image

I have a declaration Like this
'Image Array
Public ImageArray(0 To CameraImageSize - 1) As Integer

'Then I call a DLL Function that Gets the Image from a frame Grabber
WP13SaperaGetImage(ImageArray(0), CameraImageWidth, CameraImageHeight)

Here is what I need

'Image from Array Function
Call ArrayToPictureBox(PictureMain, ImageArray(0))

Can anyone help with this? Please keep in mind I am pretty new to VB so
if you can try to be as clear as possible.
I appreciate any help, Thanks in Advance.

salsipius
 
 
 

How to Copy an Integer Array into A Picturebox

Post by Schmid » Thu, 15 Dec 2005 01:17:06


"salsipius" < XXXX@XXXXX.COM > schrieb im Newsbeitrag




What (Pixel-/DIB-)Format contains the 16Bit-Array after this call?

Olaf

 
 
 

How to Copy an Integer Array into A Picturebox

Post by Mike D Sut » Thu, 15 Dec 2005 23:17:36

> I am using a frame grabber to get an image from a camera. I access the

Without a little more information about the format of the data being
returned there's not really a lot we can offer you in the way of assistance
(Google didn't turn anything up on the DLL call mentioned.)
This thread may possibly give you something to work from:
http://www.yqcomputer.com/
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: XXXX@XXXXX.COM
WWW: http://www.yqcomputer.com/