This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
Groups: Registered
Posts: 13
I use LTMM 17.5 Capture sample(.Net).
When I use LTMM 16, I just use like below.
-----------------------------------------
Dim nIndex As Integer
Dim cropsize As LMVCrop
nIndex = AxltmmCaptureCtrl1.VideoProcessors.Find("UNIQUE CODE")
AxltmmCaptureCtrl1.SelectedVideoProcessors.Add(AxltmmCaptureCtrl1.VideoProcessors.Item(nIndex), 0)
cropsize = AxltmmCaptureCtrl1.GetSubObject(ltmmPlay_Object_SelVideoProcessor)
cropsize.Enabled = True
------------------------------------------------
I tried to do like above, but I cannot.
I think I should use different method.
I want to know, how to use video processor more details.
If you can, please give me some sample code or suggest the section of help. (I already read LEADTOOLS filters Help -> Video filters ..)
(I just want to use video filter using one button, not like sample.(popup dialog -> select filter ->...)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
If you are using LEADTOOLS Multimedia v17.5 .Net DLLs, you can select a video processor programmatically by using the following code:
+--------------+
Private Crop As New LMVCropLib.LMVCrop
...
CaptureCtrl1.VideoDevices.Selection = 0
CaptureCtrl1.Preview = False
CaptureCtrl1.SelectedVideoProcessors.Add(CaptureCtrl1.VideoProcessors.Crop)
Crop = CaptureCtrl1.GetSubObject(Leadtools.Multimedia.CaptureObject.SelVideoProcessor)
Crop.Left = 10
Crop.Right = 10
Crop.Right = 500
Crop.Bottom = 500
Crop.Enabled = True
CaptureCtrl1.Preview = True
+--------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.