API Reference
Class
TgaWriter
Writes TGA images from RGBA buffers (uncompressed).
Inheritance
- Object
- TgaWriter
Methods
WriteRgba32 2 overloads
public static Byte[] WriteRgba32(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
Byte[]Writes a TGA 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 TGA stream from an RGBA buffer (32-bit BGRA).
Parameters
- stream System.IO.Stream
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32