Name
image:SetColorMask -- set transparent color
Synopsis
status = image:SetColorMask(rmin, rmax, gmin, gmax, bmin, bmax)
Function
image:SetColorMask() sets the transparent color of the image by the RGB range values. The color within the range is displayed as a transparent color. The image must be in RGB color space.

Inputs
rmin
the lower limit of red; it must be between 0 and 255
rmax
the upper limit of red; it must be between 0 and 255
gmin
the lower limit of green; it must be between 0 and 255
gmax
the upper limit of green; it must be between 0 and 255
bmin
the lower limit of blue; it must be between 0 and 255
bmax
the upper limit of blue; it must be between 0 and 255
Results
status
status code
Errors
#HPDF_INVALID_IMAGE - An invalid image handle was set.

#HPDF_INVALID_COLOR_SPACE - An image other than RGB color was specified.

#HPDF_FAILED_TO_ALLOC_MEM - Memory allocation failed.

#HPDF_INVALID_PARAMETER - An invalid value is specified.


Show TOC