CodeGlyphX logo
CodeGlyphX

API Reference

Class

PgmReader

Namespace CodeGlyphX.Rendering.Pgm
Assembly CodeGlyphX
Modifiers static

Decodes PGM (P5/P2) images to RGBA buffers.

Inheritance

  • Object
  • PgmReader

Methods

public static Byte[] DecodeRgba32(ReadOnlySpan<Byte> pgm, out Int32 width, out Int32 height) #
Returns: Byte[]

Decodes a PGM image to an RGBA buffer.

Parameters

pgm System.ReadOnlySpan{System.Byte} requiredposition: 0
width System.Int32@ requiredposition: 1
height System.Int32@ requiredposition: 2