Telerik UI for Windows Phone by Progress

Write and PNG file out to a file stream. Currently compression is not supported.

Namespace: Telerik.Windows.Controls.PngEncoder
Assemblies:  Telerik.Windows.BackgroundAgentTools (in Telerik.Windows.BackgroundAgentTools.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)
  Telerik.Windows.Core (in Telerik.Windows.Core.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)

Syntax

C#
public static void WritePNG(
	WriteableBitmap image,
	Stream stream,
	int compression
)
Visual Basic
Public Shared Sub WritePNG ( _
	image As WriteableBitmap, _
	stream As Stream, _
	compression As Integer _
)
Visual C++
public:
static void WritePNG(
	WriteableBitmap^ image, 
	Stream^ stream, 
	int compression
)

Parameters

image
Type: System.Windows.Media.Imaging..::..WriteableBitmap
The WriteableBitmap to work on.
stream
Type: System.IO..::..Stream
The destination file stream.
compression
Type: System..::..Int32
Level of compression to use (-1=auto, 0=none, 1-100 is percentage).

See Also