i want to save an Image with a predefined filename (out of a Textbox, like a serial Number) to a specific folder in C#!
Actually following thing is working fine;
axCVimage1.SaveImageByUserDialog("", “Save Image”, “CVC Image Format (.bmp)|.bmp”);
But this is not what i want - i found in , ImageManager: under Methods: boolean SaveImage ( BSTR Filename )
I think that is what i need, but i don’t know how to handle with it (I’m a beginner…). I need to put ,string filename" inside (), but how can i take name out of textbox (e.g.: textBoxName) and save it to a path (e.g.: C:\Images\Grabs).
The example code (,Loadimage", …should be the same…) ,Visual Basic - VB Fileformats Example" is not existing in my folders
You can get the content of your TextBox from its Text property and then use the string as an input for the Save method of the image OCX. If you call your TextBox e.g. “textBoxSavePath” it would look like this:
Saving and loading driver from a path is working right now
There is one question left, but it doesn’t fit to the topic:
How can i load the complete GenIcam Device Nodemap Window , while livegrabbing? I need to optimize the settings for a better view at any time. Should i open a new topic?
Its always better to have only one subject discussed in each topic But anyway:
The nodemap can be added to the GUI just like every other ActiveX control:
You can find an example application using the GenICam nodemap under %CVB%Tutorial\Hardware\GenICam\CSharp\CSGenICamExample
if you are starting from scratch with cvb it would be a good idea to start with our new cvb.net wrappers. Here is a good getting started guide: Getting Started with CVB.Net