Name
  image:SetMaskImage -- set mask image
Synopsis

      status = image:SetMaskImage(maskimage)

Function
  `image:SetMaskImage()` sets the mask image. `maskimage` must be a 1-bit gray-scale image.

Inputs
  maskimage
    handle of an image object which is used as the image mask
Results
  status
    status code
Errors
  `#HPDF_INVALID_IMAGE` - An invalid image handle was set.

  `#HPDF_INVALID_BIT_PER_COMPONENT` - An invalid bit-per-component.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

Show TOC