Name
  extgs:SetBlendMode -- set blend mode
Synopsis

      status = extgs:SetBlendMode(bmode)

Function
  `extgs:SetBlendMode()` sets the method of blending.

  The `bmode` parameter must be one of the following constants:

      #HPDF_BM_NORMAL
      #HPDF_BM_MULTIPLY
      #HPDF_BM_SCREEN
      #HPDF_BM_OVERLAY
      #HPDF_BM_DARKEN
      #HPDF_BM_LIGHTEN
      #HPDF_BM_COLOR_DODGE
      #HPDF_BM_COLOR_BUM
      #HPDF_BM_HARD_LIGHT
      #HPDF_BM_SOFT_LIGHT
      #HPDF_BM_DIFFERENCE
      #HPDF_BM_EXCLUSHON

  When `extgs:SetBlendMode()` succeeds, it returns `#HPDF_OK`. Otherwise, it returns an error code and the error handler is invoked.

Inputs
  bmode
    desired blend mode (see above for possible values)
Results
  status
    status code
Errors
  `#HPDF_INVALID_OBJECT` - An invalid ExtGState handle was set.

  `#HPDF_EXT_GSTATE_READ_ONLY` - The ExtGState object is read only.

  `#HPDF_EXT_GSTATE_OUT_OF_RANGE` - An invalid value was set at value parameter.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

Show TOC