Pnm class
Namespace: Arlecchino.Pictures.Formats.Pnm · Assembly: Arlecchino.Pictures
Reads the Netpbm family: a bitmap, a gray picture or a color one, written either as numbers or as the bytes themselves. The header is text, and a comment may stand between any two of its words.
public sealed class Pnm : IPictureFormat
Implements IPictureFormat
Constructors
| Member | Summary |
|---|---|
Pnm() |
Properties
| Member | Summary |
|---|---|
Name |
Methods
| Member | Summary |
|---|---|
Read(ReadOnlySpan<byte>, PictureLimits) | |
Starts(ReadOnlySpan<byte>) |
Constructors in detail
Pnm()
public Pnm();
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