Color image and .net
Posted: 07 November 2010 10:00 AM   [ Ignore ]
New Member
Rank
Total Posts:  1
Joined  2010-11-07

Hi!

I took sample

CLEyeWinFormsTest 

It was Grayscale for some reasons (who needs grayscale?!). I decided to make it colored.

I did following steps:

1)

_camera = CLEyeCreateCamera(CameraUUID(0), CLEyeCameraColorMode.CLEYE_COLOR_RAW, CLEyeCameraResolution.CLEYE_VGA, 60); 

2)

// allocate bitmap memory
            
_ptrBmpPixels = Marshal.AllocHGlobal(w * h * 4);
            
// create bitmap object
            
Bitmap bmpGraph = new Bitmap(w, h, w, PixelFormat.Format32bppArgb, _ptrBmpPixels); 

And picture is empty. Is PS Eye output at this mode compatible with Format32bppArgb?

Thanks,
Andrey

Profile
 
 
 
 


RSS 2.0     Atom Feed