Class ImageExtractor
Provides functionality to extract a single image frame from a video file at a specified position.
public class ImageExtractor
- Inheritance
-
ImageExtractor
- Inherited Members
Constructors
ImageExtractor()
public ImageExtractor()
Properties
DecoderParameters
Gets or sets the video decoding parameters.
public DecoderParameters DecoderParameters { get; set; }
Property Value
ErrorDescription
Gets the last error description if the last method call returned false.
public string ErrorDescription { get; }
Property Value
MaxMediaFoundationInstanceCount
Gets or sets the maximum number of concurrent Media Foundation decoder instances.
public static int MaxMediaFoundationInstanceCount { get; set; }
Property Value
Methods
Execute(string, TimeSpan)
Extracts an image frame from the specified video file at the given position.
public Task<SKImage> Execute(string filePath, TimeSpan position)
Parameters
filePathstringThe path to the video file.
positionTimeSpanThe position in the video to extract the frame from.
Returns
- Task<SKImage>
A task that returns the extracted image, or null if extraction failed.