Converting intPtr to Bitmap or BitmapData?
Posted: 03 August 2011 08:28 AM   [ Ignore ]
New Member
Rank
Total Posts:  5
Joined  2010-11-19

Hi all you brilliant minds =)

I can use the eye cam with the built in VideoCaptureDevice in the AForge framework.
But i want to be able to edit the camera options, like framerate, framesize etc.

I’m using the AForge framework to process the images, but i’m not sure how i will get the actual image.

Best case scenario would be to have a BitmapReady event that included a Bitmap object.
Is that possible somehow?

Like this

void device_BitmapReadyobject senderNewFrameEventArgs eventArgs )

       eventArgs
.Bitmap
       
//Do crazy stuff to bitmap

I have been working with C# for a few years, but i’m not at all into all that unmanaged stuff.

Thanks in advance =)

Profile
 
 
Posted: 03 August 2011 01:39 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

Please take a look at the C# samples in the SDK. It demonstrates how to get bitmap data as well as set various parameters of the camera.

Profile
 
 
Posted: 03 August 2011 02:48 PM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  5
Joined  2010-11-19

I dugg a little deeper into the windows forms sample. And i’m pretty sure i got it working now =)
Thanks

Profile
 
 
 
 


RSS 2.0     Atom Feed