I'm using the Motion C5 1.11.2 SDK and trying to hack my way through integrating the camera with my application. All is going well, except that I don't have the demo apps so I'm stuck. I'm trying to take a picture and save it to disk. I'm able to get the preview to a panel to work and I'm able to get the capture to work. From what I've read, the image is stored in the Camera.Images property and that it is in a bitmap format. Unfortunately, I'm stuck using the COM wrapper and I need to change the Camera.Images to something (besides object) so I can extract the bitmap from the collection. Here is my code:
private void button1_Click(object sender, EventArgs e) {
this._camera.CaptureFrame();
Bitmap bmp = (Bitmap)this._camera.Frames;
bmp.Save("test.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
}
I honestly have no idea where to go from here. If someone could point me in the right direction I would really appreciate it.
Jason
c# and Motion C5 SDK
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.


