Appearance
Detector Class
Definition
Provides media detection methods for common Audio and Image formats
- Namespace:
JASE.Media - Assembly:
JASE.Media.dll
Methods
| Name | Description |
|---|---|
AudioFormat GetAudioFormat(ReadOnlySpan<byte> bytes) | Detects the audio format of the passed bytes, supports Flac, Mp3, and Wav |
ImageFormat GetImageFormat(ReadOnlySpan<byte> bytes) | Detects the image format of the passed passed, supports Bmp, Gif, Png, and Jpeg |
bool IsAudio(ReadOnlySpan<byte> bytes) | Returns true if byte array is identified as an image type, supports Bmp, Gif, Png, and Jpeg |
bool IsImage(ReadOnlySpan<byte> imageBytes) | Returns true if byte array is identified as an image type, supports Bmp, Gif, Png, and Jpeg |