Appearance
DetectorExtensions Class
Definition
Provides array extension methods for Media detection methods. Lives in the JASE.Extensions namespace so call sites resolve via a shared import, but ships in JASE.Media because it depends on media detection.
- Namespace:
JASE.Extensions - Assembly:
JASE.Media.dll
Methods
| Name | Description |
|---|---|
AudioFormat GetAudioFormat(byte[] bytes) | Detects the audio format of the passed bytes, supports Flac, Mp3, and Wav |
ImageFormat GetImageFormat(byte[] bytes) | Detects the image format of the passed passed, supports Bmp, Gif, Png, and Jpeg |
bool IsAudio(byte[] bytes) | Returns true if byte array is identified as an image type, supports Bmp, Gif, Png, and Jpeg |
bool IsImage(byte[] bytes) | Returns true if byte array is identified as an image type, supports Bmp, Gif, Png, and Jpeg |