resizeTo method

void resizeTo(
  1. int width,
  2. int height,
  3. Image dstImage
)

Resizes the image to the specified width and height.

param width The new width, in pixels. param height The new height, in pixels. param dstImage The destination image that receives the resized image. throws FaceException An error has occurred during Face Library execution.

Implementation

void resizeTo(int width, int height, Image dstImage) {
  var err = faceSDK.id3FaceImage_ResizeTo(_pHandle.value, width, height, dstImage.handle);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}