| MatToBytes Method (String, ImageEncodingParam) |
Encodes an image into a memory buffer.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public byte[] ToBytes(
string ext = ".png",
params ImageEncodingParam[] prms
)
Public Function ToBytes (
Optional ext As String = ".png",
ParamArray prms As ImageEncodingParam()
) As Byte()
public:
array<unsigned char>^ ToBytes(
String^ ext = L".png",
... array<ImageEncodingParam^>^ prms
)
member ToBytes :
?ext : string *
prms : ImageEncodingParam[]
(* Defaults:
let _ext = defaultArg ext ".png"
*)
-> byte[]
Parameters
- ext (Optional)
- Type: SystemString
Encodes an image into a memory buffer. - prms
- Type: OpenCvSharpImageEncodingParam
Format-specific parameters.
Return Value
Type:
Byte[Missing <returns> documentation for "M:OpenCvSharp.Mat.ToBytes(System.String,OpenCvSharp.ImageEncodingParam[])"]
See Also