Clone Method

Summary
Creates a complete copy of this MediaSample object.
Syntax
C#
C++/CLI
public MediaSample Clone() 
public: 
MediaSample^ Clone();  

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 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.