View Full Version : snapshot while recording

April 3, 2009, 00:40:40
Hi everybody,
Is it possible to take a snapshot while I'm recording withou stopping my record.
Do you have an example , I'm a little bit hurry .
Godd nigth

Stefan Geissler
April 3, 2009, 08:46:14
Hi Sdecorme,

there is not a VB6 but a .NET sample available: http://www.imagingcontrol.com/en_US/library/dotnet/image-and-avi-capture/

The filter used in this sample can also be used in a VB6 program, if it is created as Frame Filter module. Frame Filter Modules are kind of DLLs.

April 3, 2009, 09:20:54
Thanks but I work in c#
I've a problem with the SnapImageFilterV1.SetStringParameter function
what are the 2 parameters .
I've my filename : File what is the second parameters.
I used it like this and it give me an error


April 3, 2009, 12:38:19
This is the visual studio exception :

System.ArgumentException: Value does not fall within the expected range.
at ICImagingControl3.FrameFilterClass.set_Parameter(S tring ParamName, Object& CurrentValue)
at TIS.Imaging.FrameFilter.SetStringParameter(String name, String value)

string File = @"c:\1.jpg";

if (SnapImageFilterV1 != null)
SnapImageFilterV1.SetStringParameter("image",File); <= Error

April 7, 2009, 08:29:56
I've found the error
SnapImageFilterV1.SetStringParameter("image",File) ; <= Error
SnapImageFilterV1.SetStringParameter("ImageName",File) ; <= Ok

But now where is my overlay ????

Stefan Geissler
April 7, 2009, 09:28:24
I am very sorry, but I guess, I missed to answer your question.

The SmapImageFilter is inserted in the device path before the OverlayBitmap filter, thus it saves no overlay. I suggest to insert the SnapImageFilter into the "display" path instead of the DevicePath. Then the overlay graphics should be saved in the images too. In order to use the SnapImageFilter in the display path, you use the ICImagingControl.DisplayFrameFilters property.

April 7, 2009, 09:44:43
It work
I do it like this (if someone is looking for this info too)
in c# 2.0

private TIS.Imaging.FrameFilter SnapImageFilterV1;
SnapImageFilterV1 = icImagingControl1.FrameFilterCreate("Save Image", "");
icImagingControl1.DisplayFrameFilters.Add(SnapImag eFilterV1);

if (SnapImageFilterV1 != null)

SnapImageFilterV1.SetStringParameter("ImageName", File);

File is the string containing the fille name :
string File = @"c:\1.jpg";

Thanks Stefan

Stefan Geissler
April 7, 2009, 10:40:47
Thank you for your feedback!