Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
500 stars 226 forks source link

How to pass multiple flags to cvEncodeImage ? #100

Closed turric4n closed 6 years ago

turric4n commented 6 years ago

Hi we are trying to pass multiple encoding flags/params to function cvEncodeImage(const ext: pCvChar; const image: pCvArr; const params: PInteger = nil): pCvMat; cdecl;

params is PInteger. How can pass parameters? What is the best way to do it?

Laex commented 6 years ago

Var P: array of Integer;

P:=[CV_IMWRITE_PNG_COMPRESSION,9]; R:=cvEncodeImage('png', image, @P[0]);

turric4n commented 6 years ago

Thanks Laex