PDA

View Full Version : IC Capture 2.2 Source



mworkman
June 22, 2013, 08:42:54
The IC Capture 2.2 application has some great features that I am struggling to implement. Does anyone have the source for this application? Is it available? Looking for a .NET version.

Stefan Geissler
June 24, 2013, 10:55:36
What features do you want to implement?

mworkman
June 26, 2013, 03:53:44
What features do you want to implement?

I have a DFK 72AUC02-F camera and I need to flip and rotate the image. I also need to adjust the frames per second. I have tried implementing lots of the code samples people have posted but am having no luck. It would be great to be able to see the code behind the rotate and flip buttons on the IC Capture 2.2 application software. I am developing in VB .net Regards.

mworkman
June 26, 2013, 04:39:30
Here is my current code I am trying to use. It all executes fine except the code inside the last IF statement does not get executed because DeviceFlipVerticalAvailable is not true.

' Declare local variable.
Dim RotateFlipFilter As FrameFilter

' Disable all overlays, so that they do not influence the color format of the image stream.
IcImagingControl1.OverlayBitmapPosition = TIS.Imaging.PathPositions.None

' Create a rotate and flip filter.
RotateFlipFilter = IcImagingControl1.FrameFilterCreate("Rotate Flip", "")

' Add the filter.
IcImagingControl1.DeviceFrameFilters.Add(RotateFli pFilter)

' Check if the filter was not created.
If RotateFlipFilter Is Nothing Then
MsgBox("Failed to create RotateFlipFilter in frm_VideoSettings.", MsgBoxStyle.Critical)
Else
' Set a flip vertical and horizontal flip.
RotateFlipFilter.SetBoolParameter("Flip V", True)
RotateFlipFilter.SetIntParameter("Rotation Angle", 90)
End If

' Check if flip vertical is available.
If IcImagingControl1.DeviceFlipVerticalAvailable Then
' Flip the image.
IcImagingControl1.DeviceFlipVertical = True
End If

Stefan Geissler
June 26, 2013, 09:33:50
' Check if flip vertical is available.
If IcImagingControl1.DeviceFlipVerticalAvailable Then
' Flip the image.
IcImagingControl1.DeviceFlipVertical = True
End If

"DeviceFlipVerticalAvailable" is not available. Some years ago, it was a device property. Therefore only some special devices support this. If you use the Rotate Flip filter, you do not need the DeviceFlipVerticalAvailable property at all.