Method SaveAsTgaBytes
SaveAsTgaBytes(bool)
Saves the image as TGA to a byte array without writing to disk.
public byte[] SaveAsTgaBytes(bool rle = false)
Parameters
rleboolIf true, uses RLE compression; otherwise writes uncompressed.
Returns
- byte[]
A byte array containing the TGA-encoded image data.
Exceptions
- ObjectDisposedException
Thrown if this instance has been disposed.
- InvalidOperationException
Thrown if encoding fails.