ExtGState
HPDF_ExtGState_SetAlphaStroke
#include
"apdf.h"
HPDF_STATUS
HPDF_ExtGState_SetAlphaStroke (HPDF_ExtGState ext_gstate,
HPDF_REAL value);
HPDF_STATUS
HPDF_ExtGState_SetAlphaStroke (HPDF_ExtGState ext_gstate,
HPDF_REAL value);
Description
HPDF_ExtGState_SetAlphaStroke() defined the transparency for stroking.Parameter
ext_gstateThe handle of an extended graphics state object.
value
The alpha constant for stroking. It must be
between 0 to 1.
Returns
When HPDF_ExtGState_SetAlphaStroke() succeeds, it returns HPDF_OK. Otherwise, it returns error-code and error-handler is invoked.Error
HPDF_INVALID_OBJECTAn invalid ExtGState handle was set.
HPDF_EXT_GSTATE_READ_ONLYThe ExtGState object is read only.
HPDF_EXT_GSTATE_OUT_OF_RANGE
An invalid value was set at value parameter.
HPDF_FAILD_TO_ALLOC_MEMMemory Allocation Failed.
HPDF_ExtGState_SetAlphaFill
#include
"apdf.h"
HPDF_STATUS
HPDF_ExtGState_SetAlphaFill (HPDF_ExtGState ext_gstate,
HPDF_REAL value);
HPDF_STATUS
HPDF_ExtGState_SetAlphaFill (HPDF_ExtGState ext_gstate,
HPDF_REAL value);
Description
HPDF_ExtGState_SetAlphaFill() defined the transparency for filling.Parameter
ext_gstateThe handle of an extended graphics state object.
value
The alpha constant for filling. It must be
between 0 to 1.
Returns
When HPDF_ExtGState_SetAlphaFill() succeeds, it returns HPDF_OK. Otherwise, it returns error-code and error-handler is invoked.Error
HPDF_INVALID_OBJECTAn invalid ExtGState handle was set.
HPDF_EXT_GSTATE_READ_ONLYThe ExtGState object is read only.
HPDF_EXT_GSTATE_OUT_OF_RANGE
An invalid value was set at value parameter.
HPDF_FAILD_TO_ALLOC_MEMMemory Allocation Failed.
HPDF_ExtGState_SetBlendMode
#include
"apdf.h"
HPDF_ExtGState_SetBlendMode (HPDF_ExtGState ext_gstate,
HPDF_BlendMode bmode);
HPDF_ExtGState_SetBlendMode (HPDF_ExtGState ext_gstate,
HPDF_BlendMode bmode);
Description
HPDF_ExtGState_SetBlendMode() defined the method of blending.Parameter
ext_gstateThe handle of an extended graphics state object.
bmodeThe following values are available.
- 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
Returns
When HPDF_ExtGState_SetBlendMode() succeeds, it returns HPDF_OK. Otherwise, it returns error-code and error-handler is invoked.Error
HPDF_INVALID_OBJECTAn invalid ExtGState handle was set.
HPDF_EXT_GSTATE_READ_ONLYThe ExtGState object is read only.
HPDF_EXT_GSTATE_OUT_OF_RANGE
An invalid blend mode was set.
HPDF_FAILD_TO_ALLOC_MEMMemory Allocation Failed.