ImageProbe
Overview
ImageProbe is a class in Aspose.Imaging FOSS for .NET.
ImageProbe.DetectFormat has overloads that accept either a Stream or a byte[] and return an ImageFormat enum value.
This class declares 5 methods for ImageProbe objects in .NET programs.
Available methods include: DetectFormat, Probe, ProbeFile.
Public members are accessible to any .NET application after installing the Aspose.Imaging FOSS for .NET package.
Methods
| Signature | Description |
|---|---|
DetectFormat(stream: Stream) | And ImageProbe.DetectFormat(byte[]) return only the ImageFormat when you need format identification without other metadata |
DetectFormat(data: byte[]) | Calls DetectFormat(data) on this ImageProbe instance. |
Probe(stream: Stream) | And ImageProbe.Probe(byte[]) read a stream or byte array and return an ImageInfo with format, width, height, bit depth and optional frame count |
Probe(data: byte[]) | Calls Probe(data) on this ImageProbe instance. |
ProbeFile(path: string) | Calls ProbeFile(path) on this ImageProbe instance. |