Class Png¶
Namespace: Apogee.Content
Assembly: Apogee.Content.dll
A minimal PNG writer for 8-bit RGBA images: screenshots and test files. Reading goes through stb_image.
public static class Png
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Encode(int, int, ReadOnlySpan<byte>)¶
Encodes tightly packed RGBA8 pixels, top row first.
public static byte[] Encode(int width, int height, ReadOnlySpan<byte> rgba)
Parameters¶
width int
height int
rgba ReadOnlySpan<byte>
Returns¶
byte[]