Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2285 > unrolled thread
| Started by | Syd Rumpo <usenet@nononono.co.uk> |
|---|---|
| First post | 2016-09-16 17:41 +0100 |
| Last post | 2016-09-17 03:08 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.basic.visual.misc
VB2010 displaying jpegs from serial input. Syd Rumpo <usenet@nononono.co.uk> - 2016-09-16 17:41 +0100
Re: VB2010 displaying jpegs from serial input. GS <gs@v.invalid> - 2016-09-16 18:11 -0400
Re: VB2010 displaying jpegs from serial input. "Auric__" <not.my.real@email.address> - 2016-09-17 03:08 +0000
| From | Syd Rumpo <usenet@nononono.co.uk> |
|---|---|
| Date | 2016-09-16 17:41 +0100 |
| Subject | VB2010 displaying jpegs from serial input. |
| Message-ID | <nrh7ce$4ut$1@dont-email.me> |
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
[toc] | [next] | [standalone]
| From | GS <gs@v.invalid> |
|---|---|
| Date | 2016-09-16 18:11 -0400 |
| Message-ID | <nrhqn9$ddm$1@dont-email.me> |
| In reply to | #2285 |
> 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
[toc] | [prev] | [next] | [standalone]
| From | "Auric__" <not.my.real@email.address> |
|---|---|
| Date | 2016-09-17 03:08 +0000 |
| Message-ID | <XnsA685CCD83AA81auricauricauricauric@213.239.209.88> |
| In reply to | #2285 |
Syd Rumpo wrote: > 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. How fast does the jpeg update? Depending on that, hard drive speed, network speed, and the phase of the moon, it might be acceptable to go the temp file route. -- Hello, and welcome to another edition of "This Fucked-Up World", with your host, A Stupid Fuck.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.basic.visual.misc
csiph-web