resizeTo method

void resizeTo(
  1. int width,
  2. int height,
  3. DocumentImage dstDocumentImage
)

Resizes the image to the specified width and height.

param width The new width, in pixels. param height The new height, in pixels. param dstDocumentImage The destination image that receives the resized image. throws DocumentException An error has occurred during Document Library execution.

Implementation

void resizeTo(int width, int height, DocumentImage dstDocumentImage) {
  var err = documentSDK.id3DocumentImage_ResizeTo(_pHandle.value, width, height, dstDocumentImage.handle);
  if (err != DocumentError.success.value) {
    throw DocumentException(err);
  }
}