rotateEdgeAsync method

Future<int> rotateEdgeAsync(
  1. int edge,
  2. int rotate
)

Implementation

Future<int> rotateEdgeAsync(int edge, int rotate) async {
  final p = calloc<ffi.Int>();
  return cvRunAsync0(
    (callback) => cimgproc.cv_Subdiv2D_rotateEdge(ref, edge, rotate, p, callback),
    (c) {
      final rval = p.value;
      calloc.free(p);
      return c.complete(rval);
    },
  );
}