I am trying to create an image or bitmap from the camera bitstream, which I (hopefully) will go to the browser through websocket. The application I am creating is a console application, because I did not think that this application would require a graphical interface. Now I am having problems creating / accessing the Image and Bitmap classes. System.Drawing doesn't seem to exist, and I don't know why. When I try using System.Drawing , I get the error The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?) What is the best way to create a bitmap in a console application, and is there any reason why i can't seem to load System.Drawing?
Code:
private void Kinect_ColorFrameReady(object sender, ColorImageFrameReadyEventArgs e) { using (ColorImageFrame frame = e.OpenColorImageFrame()) { if (frame != null) { byte[] pixelData = new byte[frame.PixelDataLength]; frame.CopyPixelDataTo(pixelData);
source share