CvArrToStream Method OpenCvSharp Class Library
Extract this image to the memory using cvEncodeImage

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void ToStream(
	Stream outStream,
	string ext,
	params ImageEncodingParam[] encodingParams
)

Parameters

outStream
Type: System.IOStream
Destination stream.
ext
Type: SystemString
Image extension to decide encoding format.
encodingParams
Type: OpenCvSharpImageEncodingParam
Encoding options.

Return Value

Type: 
See Also

Reference