944,044 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 3121
  • C# RSS
Jul 18th, 2007
0

Reality Check on picturebox control (And creating custom control)

Expand Post »
Hello, again.

My time is nearly up on the Ultrasound GUI I've been working on, and I've got one last major feature to implement: continuous capture at a user-selected 1 to 30 frames/second rate.

In the past, I've tried running a loop that would take all the pictures, but for long capture sessions (5000+frames), this causes system slowdown and reduces user control.

So I'm trying to find a way to make the decision to capture or not based on other parts of the code that have to update as well.

The system currently works by displaying a live feed from a Data Translation board in a picture box, which allows me to take single images and store them in a frame buffer for later conversion to .jpg and renaming to fit the capture session.

I am wondering how the live feed is achieved.

I would like to do an override of the picturebox's OnPaint process, to determine if the DT board and software is invalidating the control and repainting it each time new data arrives. If that's the case, then I can certainly 'piggyback' a frame capture function onto the display itself.

But I'm not sure how to do this. I've started trying to add a new inherited control, but I don't think I'm doing it the right way; the compiler (an older version of C#) complains that I have to select the control to inherit from (or something) without giving any means of selecting said control, aside from a browse option.

Any suggestions or tips or how to's for adding an inherited control, if this is at all necessary?
Similar Threads
Reputation Points: 22
Solved Threads: 5
Posting Whiz in Training
Drowzee is offline Offline
244 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: HELP: User Log In From Connected in Access Database
Next Thread in C# Forum Timeline: How to turn a forum to the default forum





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC