 | Cv2.ImEncode Method (String, InputArray,Byte[],ImageEncodingParam[]) |
Compresses the image and stores it in the memory buffer
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntaxpublic static void ImEncode(
string ext,
InputArray img,
out byte[] buf,
params ImageEncodingParam[] prms
)
Public Shared Sub ImEncode (
ext As String,
img As InputArray,
<OutAttribute> ByRef buf As Byte(),
ParamArray prms As ImageEncodingParam()
)
public:
static void ImEncode(
String^ ext,
InputArray^ img,
[OutAttribute] array<unsigned char>^% buf,
... array<ImageEncodingParam^>^ prms
)
static member ImEncode :
ext : string *
img : InputArray *
buf : byte[] byref *
prms : ImageEncodingParam[] -> unit
Parameters
- ext
- Type: System.String
The file extension that defines the output format - img
- Type: OpenCvSharp.InputArray
The image to be written - buf
- Type:System.Byte[]
Output buffer resized to fit the compressed image. - prms
- Type:OpenCvSharp.ImageEncodingParam[]
Format-specific parameters.
See Also