Encodes the specified pixels.

Namespace: FirstFloor.Documents.Imaging
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public Stream Encode(
	int width,
	int height,
	int[] pixels,
	PixelFormat pixelFormat,
	int n
)
Visual Basic
Public Function Encode ( _
	width As Integer, _
	height As Integer, _
	pixels As Integer(), _
	pixelFormat As PixelFormat, _
	n As Integer _
) As Stream
Visual C++
public:
Stream^ Encode(
	int width, 
	int height, 
	array<int>^ pixels, 
	PixelFormat pixelFormat, 
	int n
)

Parameters

width
Type: System..::..Int32
The width.
height
Type: System..::..Int32
The height.
pixels
Type: array<System..::..Int32>[]()[][]
The pixels.
pixelFormat
Type: FirstFloor.Documents.Imaging..::..PixelFormat
Specifies the format of the input pixels.
n
Type: System..::..Int32
The number of color components to write to the stream. Either 3 (RGB) or 4 (ARGB).

Return Value

The encoded bitmap stream.

See Also