| Cv2ImEncode Method (String, InputArray, Byte, Int32) |
Compresses the image and stores it in the memory buffer
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static bool ImEncode(
string ext,
InputArray img,
out byte[] buf,
int[] prms = null
)
Public Shared Function ImEncode (
ext As String,
img As InputArray,
<OutAttribute> ByRef buf As Byte(),
Optional prms As Integer() = Nothing
) As Boolean
public:
static bool ImEncode(
String^ ext,
InputArray^ img,
[OutAttribute] array<unsigned char>^% buf,
array<int>^ prms = nullptr
)
static member ImEncode :
ext : string *
img : InputArray *
buf : byte[] byref *
?prms : int[]
(* Defaults:
let _prms = defaultArg prms null
*)
-> bool
Parameters
- ext
- Type: SystemString
The file extension that defines the output format - img
- Type: OpenCvSharpInputArray
The image to be written - buf
- Type: SystemByte
Output buffer resized to fit the compressed image. - prms (Optional)
- Type: SystemInt32
Format-specific parameters.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenCvSharp.Cv2.ImEncode(System.String,OpenCvSharp.InputArray,System.Byte[]@,System.Int32[])"]
See Also