Class GifImageFormatDetector
Detects gif file headers
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Gif
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class GifImageFormatDetector : IImageFormatDetector
Properties
| Improve this Doc View SourceHeaderSize
Gets the size of the header for this image type.
Declaration
public int HeaderSize { get; }
Property Value
Type | Description |
---|---|
Int32 | The size of the header. |
Methods
| Improve this Doc View SourceDetectFormat(ReadOnlySpan<Byte>)
Detect mimetype
Declaration
public IImageFormat DetectFormat(ReadOnlySpan<byte> header)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<Byte> | header | The byte[] containing the file header. |
Returns
Type | Description |
---|---|
IImageFormat | returns the mime type of detected otherwise returns null |