here is a screen shot of my life video steam :
here is a screen shot of a picture box that uses GetCurrentVideoFrame() :
you can clearly see that the two pictures are different, but this should be the same.
here is my code :
- Code: Select all
Bitmap getPic2(int i2)
{
Bitmap bmp = null;
Bitmap tempB = null;
if (endIRList[i2].X > videoSourcePlayer.Width - 1)
endIRList[i2]= new System.Drawing.Point(videoSourcePlayer.Width - 1, endIRList[i2].Y);
if (endIRList[i2].Y > videoSourcePlayer.Height - 1)
endIRList[i2] = new System.Drawing.Point(endIRList[i2].X, videoSourcePlayer.Height - 1);
if (stIRList[i2].X >= 0 && stIRList[i2].Y >= 0 && endIRList[i2].X < videoSourcePlayer.Width && endIRList[i2].Y < videoSourcePlayer.Height)
{
if (endIRList[i2].X - stIRList[i2].X > 0 && endIRList[i2].Y - stIRList[i2].Y > 0)
{
bmp = videoSourcePlayer.GetCurrentVideoFrame();
System.Drawing.Image iOld = p2.Image;
tempB = bmp.Clone(new Rectangle(stIRList[i2].X, stIRList[i2].Y, endIRList[i2].X - stIRList[i2].X, endIRList[i2].Y - stIRList[i2].Y),bmp.PixelFormat);
if (iOld != null)
{
iOld.Dispose();
iOld = null;
}
}
}
pictureBox1.Image = videoSourcePlayer.GetCurrentVideoFrame();
TestPicBox.Image = tempB;
return tempB;
}
pictureBox1 is how I am displaying my copy.
anyhow, has anyone seen this before ?
I did make a few changes to Controls.cs to add a zoom and pan function but I never changed videoSourcePlayer.GetCurrentVideoFrame();
also I went back to the old version, the one I downloaded from the site without my changes and it does the same thing.
can anyone help me with this ?