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_RAWCLEyeCameraResolution.CLEYE_VGA60); 

2)

// allocate bitmap memory
            
_ptrBmpPixels Marshal.AllocHGlobal(4);
            
// create bitmap object
            
Bitmap bmpGraph = new Bitmap(whwPixelFormat.Format32bppArgb_ptrBmpPixels); 

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

Thanks,
Andrey

Profile
 
 
 
 


RSS 2.0     Atom Feed