getWidth method

int getWidth()

Gets the width in pixels.

return Width in pixels. throws FaceException An error has occurred during Face Library execution.

Implementation

int getWidth() {
  Pointer<Int> pWidth = calloc();
  try {
    var err = faceSDK.id3FaceImage_GetWidth(_pHandle.value, pWidth);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vWidth = pWidth.value;
    return vWidth;
  } finally {
    calloc.free(pWidth);
  }
}