API Reference
Class
PpmWriter
Writes PPM (P6) images from RGBA buffers.
Inheritance
- Object
- PpmWriter
Methods
WriteRgba32 2 overloads
public static Byte[] WriteRgba32(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
Byte[]Writes a PPM byte array from an RGBA buffer.
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
public static Void WriteRgba32(Stream stream, Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
VoidWrites a PPM (P6) stream from an RGBA buffer (alpha blended over white).
Parameters
- stream System.IO.Stream
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
WriteRgba32Scanlines 2 overloads
public static Byte[] WriteRgba32Scanlines(Int32 width, Int32 height, ReadOnlySpan<Byte> scanlines, Int32 stride) #Returns:
Byte[]Writes a PPM byte array from a PNG scanline buffer (filter byte per row).
Parameters
- width System.Int32
- height System.Int32
- scanlines System.ReadOnlySpan{System.Byte}
- stride System.Int32
public static Void WriteRgba32Scanlines(Stream stream, Int32 width, Int32 height, ReadOnlySpan<Byte> scanlines, Int32 stride) #Returns:
VoidWrites a PPM (P6) stream from a PNG scanline buffer (filter byte per row).
Parameters
- stream System.IO.Stream
- width System.Int32
- height System.Int32
- scanlines System.ReadOnlySpan{System.Byte}
- stride System.Int32