BitmapEncoderEncode Method (Int32, Int32, Int32, PixelFormat, Int32)Document Toolkit Help
Encodes the specified pixels.

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

public Stream Encode(
	int width,
	int height,
	int[] pixels,
	PixelFormat pixelFormat,
	int n
)

Parameters

width
Type: SystemInt32
The width.
height
Type: SystemInt32
The height.
pixels
Type: SystemInt32
The pixels.
pixelFormat
Type: FirstFloor.Documents.ImagingPixelFormat
Specifies the format of the input pixels.
n
Type: SystemInt32
The number of color components to write to the stream. Either 3 (RGB) or 4 (ARGB).

Return Value

Type: Stream
The encoded bitmap stream.
See Also

Reference