set_TrimFromStart()
VideoFrame::set_TrimFromStart(float) method
Trim start [ms]
void Aspose::Slides::VideoFrame::set_TrimFromStart(float value) override
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 VideoFrame
- Namespace Aspose::Slides
- Library Aspose.Slides