CodeGlyphX logo
CodeGlyphX

API Reference

Class

TgaReader

Namespace CodeGlyphX.Rendering.Tga
Assembly CodeGlyphX
Modifiers static

Decodes TGA images to RGBA buffers (uncompressed + RLE, true-color/grayscale/color-mapped).

Inheritance

  • Object
  • TgaReader

Methods

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

Decodes a TGA image to an RGBA buffer.

Parameters

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