J
Joe Thompson
I have a Windows form program written in C# 2005.
I continually read a stream of data via TCP that comes from a video camera
(NTSC).
When I have all the data for one frame I update a picturebox (pbVideo) like
this:
pbVideo.Image = (Bitmap)Bitmap.FromStream(new MemoryStream(m_ImageBuff, 0,
m_TotalImageBytes), true, true);
or this
pbVideo.Image = (Bitmap)Bitmap.FromStream(new MemoryStream(m_ImageBuff, 0,
m_TotalImageBytes));
Everything works as expected except the colors are wrong. For example, the
things that should look yellow are turquoise and the things that should be
blue appear as red or orange.
The data stream is in mjpeg format - I just pick out the frames one at a time.
Any ideas or suggestions would be appreciated...
Thank you,
Joe
I continually read a stream of data via TCP that comes from a video camera
(NTSC).
When I have all the data for one frame I update a picturebox (pbVideo) like
this:
pbVideo.Image = (Bitmap)Bitmap.FromStream(new MemoryStream(m_ImageBuff, 0,
m_TotalImageBytes), true, true);
or this
pbVideo.Image = (Bitmap)Bitmap.FromStream(new MemoryStream(m_ImageBuff, 0,
m_TotalImageBytes));
Everything works as expected except the colors are wrong. For example, the
things that should look yellow are turquoise and the things that should be
blue appear as red or orange.
The data stream is in mjpeg format - I just pick out the frames one at a time.
Any ideas or suggestions would be appreciated...
Thank you,
Joe
