resize method

void resize(
  1. int width,
  2. int height
)

Resizes the image in-place to the required width and height.

param width The new width, in pixels. param height The new height, in pixels. throws DocumentException An error has occurred during Document Library execution.

Implementation

void resize(int width, int height) {
  var err = documentSDK.id3DocumentImage_Resize(_pHandle.value, width, height);
  if (err != DocumentError.success.value) {
    throw DocumentException(err);
  }
}