The WriteableBitmap.
The destination stream.
WriteTga Method
Writes the WriteableBitmap as a TGA image to a stream. Used with permission from Nokola: http://nokola.com/blog/post/2010/01/21/Quick-and-Dirty-Output-of-WriteableBitmap-as-TGA-Image.aspx
Syntax
[Extension()]
public static void WriteTga( 
   WriteableBitmap bmp,
   Stream destination
)

Parameters

bmp
The WriteableBitmap.
destination
The destination stream.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also