Hello i have a question. i want put my camera in display T35 in FezspiderII.
i make this code for the camera :
using GHI.Usb.Host;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using System.Threading;
public class Program
{
private static Bitmap lcd = new Bitmap(SystemMetrics.ScreenWidth, SystemMetrics.ScreenHeight);
public static void Main()
{
Controller.WebcamConnected += Controller_WebcamConnected;
Controller.Start();
Thread.Sleep(Timeout.Infinite);
}
private static void Controller_WebcamConnected(object sender, Webcam webcam)
{
webcam.ImageAvailable += webcam_ImageAvailable;
foreach (Webcam.ImageFormat i in webcam.SupportedFormats)
{
if (i.Width == 320 && i.Height == 240)
{
webcam.StartStreaming(i);
break;
}
}
}
private static void webcam_ImageAvailable(Webcam sender, EventArgs e)
{
sender.GetImage(lcd);
lcd.Flush();
}
}
but i don’t have lcd. I have Display T35.