Png class
Namespace: Arlecchino.Pictures.Formats.Png · Assembly: Arlecchino.Pictures
Reads a PNG into pixels, dropping the alpha a terminal has nothing to show against. Every color type and depth the format allows is read, interlaced or not.
public sealed class Png : IPictureFormat
Implements IPictureFormat
Constructors
| Member | Summary |
|---|---|
Png() |
Properties
| Member | Summary |
|---|---|
Name |
Methods
| Member | Summary |
|---|---|
Read(ReadOnlySpan<byte>, PictureLimits) | |
Starts(ReadOnlySpan<byte>) |
Constructors in detail
Png()
public Png();
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