| MatToBytes Method (String, Int32) |
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",
int[] prms = null
)
Public Function ToBytes (
Optional ext As String = ".png",
Optional prms As Integer() = Nothing
) As Byte()
public:
array<unsigned char>^ ToBytes(
String^ ext = L".png",
array<int>^ prms = nullptr
)
member ToBytes :
?ext : string *
?prms : int[]
(* Defaults:
let _ext = defaultArg ext ".png"
let _prms = defaultArg prms null
*)
-> byte[]
Parameters
- ext (Optional)
- Type: SystemString
Encodes an image into a memory buffer. - prms (Optional)
- Type: SystemInt32
Format-specific parameters.
Return Value
Type:
Byte[Missing <returns> documentation for "M:OpenCvSharp.Mat.ToBytes(System.String,System.Int32[])"]
See Also