Method ImEncode
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ImEncode(string, InputArray, out byte[], ImageEncodingParam[]?)
Compresses the image and stores it in the memory buffer
public static bool ImEncode(string ext, InputArray img, out byte[] buf, ImageEncodingParam[]? prms = null)
Parameters
extstringThe file extension that defines the output format
imgInputArrayThe image to be written
bufbyte[]Output buffer resized to fit the compressed image.
prmsImageEncodingParam[]Format-specific parameters.