Tga class
Namespace: Arlecchino.Pictures.Formats.Tga · Assembly: Arlecchino.Pictures
Reads a Targa. The format begins with no signature of its own, so a file is claimed only when every field of the header is one of those the format allows.
public sealed class Tga : IPictureFormat
Implements IPictureFormat
Constructors
| Member | Summary |
|---|---|
Tga() |
Properties
| Member | Summary |
|---|---|
Name |
Methods
| Member | Summary |
|---|---|
Read(ReadOnlySpan<byte>, PictureLimits) | |
Starts(ReadOnlySpan<byte>) |
Constructors in detail
Tga()
public Tga();
Properties in detail
Name
public string Name { get; }
Type string
Methods in detail
Read(ReadOnlySpan<byte>, PictureLimits)
public Raster? Read(ReadOnlySpan<byte> bytes, PictureLimits limits);
Parameters
| Name | Type | Description |
|---|---|---|
bytes | ReadOnlySpan<T><byte> | |
limits | PictureLimits |
Returns Raster
Starts(ReadOnlySpan<byte>)
public bool Starts(ReadOnlySpan<byte> bytes);
Parameters
| Name | Type | Description |
|---|---|---|
bytes | ReadOnlySpan<T><byte> |
Returns bool