←Select platform

Clone Method

Summary

Creates a complete copy of this MediaSample object.

Syntax

C#
VB
C++
public MediaSample Clone() 
Public Function Clone() As Leadtools.Multimedia.MediaSample 

Return Value

A new MediaSample object containing a copy of sample data and attributes of this MediaSample object.

Remarks

Making a copy of an existing MediaSample object is useful for keeping a MediaSample object because getting multiple sample buffers will invalidate the previous buffers. This method is similar to CopyTo, except that this method creates a new MediaSample, copies everything into it and then returns the newly created object.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly