I don't know what library do you use and even I don't know what linksprite camera means, but try this framework for working with cameras or video cameras:
http://www.aforgenet.com/framework/[
^]
I was working with video cameras, try this:
public class CameraImaging
{
public FilterInfoCollection videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice );
private VideoCaptureDevice _videoSource;
public Bitmap bitmap = new Bitmap(10, 10);
public VideoCaptureDevice videoSource
{
get
{
return _videoSource;
}
set
{
_videoSource = value;
_videoSource.NewFrame +=new NewFrameEventHandler(videoSource_NewFrame);
}
}
public CameraImaging(VideoCaptureDevice videoDevice)
{
VideoCaptureDevice videoSource = videoDevice;
}
public CameraImaging()
{
}
private void videoSource_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
lock (bitmap)
{
bitmap = (Bitmap)eventArgs.Frame.Clone();
}
}
}
and run the video in MainForm... this will make one image (bitmap):
camImg.videoSource.Start();
lock (mImageLock)
{
Bitmap tmp = (Bitmap)camImg.bitmap.Clone();
if (InvokeRequired)
{
BeginInvoke(new MethodInvoker(() =>
{
pictureBox1.Image = tmp;
pictureBox1.Invalidate();
}));
}
else
{
pictureBox1.Image = tmp;
pictureBox1.Invalidate();
}
}
camImg.Video.Stop();