Gets a Stream that contains a JPG 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,
	int quality
)
Visual Basic
Public Shared Function Encode ( _
	bmp As C1Bitmap, _
	quality As Integer _
) As Stream

Parameters

bmp
Type: C1.Phone.Imaging..::..C1Bitmap
C1Bitmap to encode.
quality
Type: System..::..Int32
Quality of the image from 0 to 100.

Return Value

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

See Also