Gets a Stream that contains a PNG representation of a C1Bitmap

Namespace:  C1.Phone.Imaging
Assembly:  C1.Phone.Imaging (in C1.Phone.Imaging.dll)

Syntax

C#
public static Stream Encode(
	C1Bitmap bmp,
	bool compress
)
Visual Basic
Public Shared Function Encode ( _
	bmp As C1Bitmap, _
	compress As Boolean _
) As Stream

Parameters

bmp
Type: C1.Phone.Imaging..::..C1Bitmap
C1Bitmap to encode.
compress
Type: System..::..Boolean
true to use zip compression; otherwise, false.

Return Value

A Stream that contains a PNG representation of the given C1Bitmap.

See Also