getWindowProperty function

double getWindowProperty(
  1. String winName,
  2. WindowPropertyFlags flag
)

Implementation

double getWindowProperty(String winName, WindowPropertyFlags flag) {
  final cWinName = winName.toNativeUtf8().cast<ffi.Char>();
  final p = calloc<ffi.Double>();
  cvRun(() => chighgui.cv_getWindowProperty(cWinName, flag.value, p));
  final rval = p.value;
  calloc.free(p);
  calloc.free(cWinName);
  return rval;
}