Privew of Webcam
-
i can connect to webcam.... how can i show preview of webcam in picturebox...???
private void btnDecode_Click_1(object sender, EventArgs e)
{
try
{
DeviceManager manager = new DeviceManagerClass();
Device d = null;
foreach (DeviceInfo info in manager.DeviceInfos)
{
d = info.Connect();} Item item = d.ExecuteCommand(CommandID.wiaCommandTakePicture); foreach (string format in item.Formats) { WIA.ImageFile imagefile = item.Transfer(format) as WIA.ImageFile; imagefile.SaveFile("d:\\\\test2.JPG");
A S E L A
-
i can connect to webcam.... how can i show preview of webcam in picturebox...???
private void btnDecode_Click_1(object sender, EventArgs e)
{
try
{
DeviceManager manager = new DeviceManagerClass();
Device d = null;
foreach (DeviceInfo info in manager.DeviceInfos)
{
d = info.Connect();} Item item = d.ExecuteCommand(CommandID.wiaCommandTakePicture); foreach (string format in item.Formats) { WIA.ImageFile imagefile = item.Transfer(format) as WIA.ImageFile; imagefile.SaveFile("d:\\\\test2.JPG");
A S E L A
Well, you could create a BItmap from test2.jpg, and assign it to a picture box ?
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
-
Well, you could create a BItmap from test2.jpg, and assign it to a picture box ?
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp