Discussion:
VB2010 displaying jpegs from serial input.
(too old to reply)
Syd Rumpo
2016-09-16 16:41:55 UTC
Permalink
I have a communications system which sends data to a VB2010 program over
USB. I can readily decode the data and display various parameters.

This is used to demonstrate the comms system, and what I would like to
do is send jpeg images to my VB program and display them in a
PictureBox. I can strip out all the comms overhead and write the jpeg
to a byte array easily, but how can I then display this?

I could write a file to disk and read this into the PictureBox, but I
want this to go fairly quickly - the jpegs form a slowish video stream.

I'd use two byte arrays, and display one while loading the other, then
swap over. But how do I make a picture from a byte array containing a
jpeg image?

I suspect the answer is trivial, but I'm no VB guru.

Cheers
--
Syd
GS
2016-09-16 22:11:56 UTC
Permalink
Post by Syd Rumpo
I have a communications system which sends data to a VB2010 program
over USB. I can readily decode the data and display various
parameters.
This is used to demonstrate the comms system, and what I would like
to do is send jpeg images to my VB program and display them in a
PictureBox. I can strip out all the comms overhead and write the
jpeg to a byte array easily, but how can I then display this?
I could write a file to disk and read this into the PictureBox, but I
want this to go fairly quickly - the jpegs form a slowish video stream.
I'd use two byte arrays, and display one while loading the other,
then swap over. But how do I make a picture from a byte array
containing a jpeg image?
I suspect the answer is trivial, but I'm no VB guru.
Cheers
VB2010 is .Net; -this forum is for Classic VB6 and earlier<g>
--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Auric__
2016-09-17 03:08:05 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...