The SampleTarget object is used to fetch single media samples from the ConvertCtrl and CaptureCtrl objects.
public class SampleTarget : IDisposable
public ref class SampleTarget : public System.IDisposable
A sample target will accept samples having a specific media type.
This media type is set in the MediaType object. Once the media type is set, the media type for the sample target is set by calling the SampleTarget.SetAcceptedMediaType method.
To determine the accepted media type of the sample target, call the SampleTarget.GetAcceptedMediaType method.
The sample target object must be set to receive samples from either a CaptureCtrl object or a ConvertCtrl object and then start either the capture or the convert process.
Once that is done, the sample target can begin receiving samples. Using the GetSample method, the sample target can get delivered samples one at a time, until the end of the stream is reached. When the end of the stream is reached, the convert or capture process should be stopped.
For a more detailed description of this process, refer to Implementing a SampleTarget object.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.