| | |
Reality Check on picturebox control (And creating custom control)
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 244
Reputation:
Solved Threads: 5
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?
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?
Explainer of control logic and some basics.
"If you seek to drink from a fountain of knowledge, make sure your cup is big enough."
"If you seek to drink from a fountain of knowledge, make sure your cup is big enough."
![]() |
Similar Threads
- drawing in picturebox (Visual Basic 4 / 5 / 6)
- Using WebBrowser Control in Win32 (C)
- Custom Web Server Control That Validate Itself (ASP.NET)
- Creating a Hosts File Pointers. . .Entry Level (Windows 95 / 98 / Me)
- Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? (C++)
Other Threads in the C# Forum
- Previous Thread: HELP: User Log In From Connected in Access Database
- Next Thread: How to turn a forum to the default forum
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom customactiondata database datagrid datagridview dataset datastructure date/time datetime datetimepicker degrees development dll draganddrop drawing encryption enum event excel file filename files form format forms function gdi+ gis gtk hash httpwebrequest image index input install java label list listbox mandelbrot math mouseclick mysql operator outlook2003 path photoshop picturebox pixelinversion pixelminversion post programming radians regex remoting richtextbox server sleep snooze socket sql statistics stream string table tables tcp text textbox thread time timer update usercontrol usercontrols validation visualstudio webbrowser webcam wia windows winforms wpf xml





