get_TrimFromStart()
IVideoFrame::get_TrimFromStart() method
Trim start [ms]
virtual float Aspose::Slides::IVideoFrame::get_TrimFromStart()=0
Remarks
Example:
auto pres = System::MakeObject<Presentation>();
System::SharedPtr<ISlide> slide = pres->get_Slide(0);
System::ArrayPtr<uint8_t> content = System::IO::File::ReadAllBytes(u"video.mp4");
System::SharedPtr<IVideo> video = pres->get_Videos()->AddVideo(content);
System::SharedPtr<IVideoFrame> videoFrame = slide->get_Shapes()->AddVideoFrame(0.0f, 0.0f, 100.0f, 100.0f, video);
//set triming start time 1sec
videoFrame->set_TrimFromStart(1000.0f);
//set triming end time 2sec
videoFrame->set_TrimFromEnd(2000.0f);
See Also
- Class IVideoFrame
- Namespace Aspose::Slides
- Library Aspose.Slides