#1
Posted
:
Thursday, September 21, 2017 3:04:51 PM(UTC)
Groups: Registered
Posts: 119
Was thanked: 4 time(s) in 4 post(s)
The
LEAD Video Crop filter is used to extract areas from a source movie, a graphical representation is provided to show and modify the desired rectangle position and size. The cropped rectangle can be as small as 1x1. The filter's functionality is exposed through both user and programming interfaces.
This can be found withing the LMVCrop2.dll, LEAD Video Crop Filter. The filter reduces the video width or height, eliminating unwanted portions of the video.
Below you will see a small code snippet that demonstrates how you can can crop your video. You will need to take the crop video
processor and add that to the
playCtrl1 then use the
GetSubObject Method within the PlayCtrl to get the specified graph object.
Code:
LMVCrop crop;
Processor cropFilter = playCtrl1.VideoProcessors.Crop;
playCtrl1.SelectedVideoProcessors.Add(cropFilter);
crop = (LMVCrop)playCtrl1.GetSubObject(PlayObject.SelVideoProcessor);
crop.Left = 100;
crop.Right = 500;
crop.Bottom = 500;
crop.Enabled = true;
playCtrl1.SourceFile = @"PATH TO VIDEO";
playCtrl1.Run();
Edited by moderator Tuesday, December 14, 2021 3:33:44 PM(UTC)
| Reason: Updated links to v22
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.
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.