可以简单增加几个内部函数方便VFP调用.
DECLARE integer HPDF_Page_GetRGBFill In libhpdf.dll integer
DECLARE HPDF_Page_GetRGBFill_VFP In libhpdf.dll integer npage,single @R,single @G,single @B
DECLARE HPDF_Page_GetRGBStroke_VFP In libhpdf.dll integer npage,single @R,single @G,single @B
DECLARE HPDF_Page_GetCMYKFill_VFP In libhpdf.dll integer npage,single @C,single @M,single @Y,single @K
DECLARE HPDF_Page_GetCMYKStroke_VFP In libhpdf.dll integer npage,single @C,single @M,single @Y,single @K
DECLARE HPDF_Page_GetTextMatrix_VFP In libhpdf.dll integer npage,single @A,single @B,single @C,single @D,single @X,single @Y
前面代码略....
以这个函数为例:
HPDF_Page_SetRGBFill(npage, 1.00, 0.5334, 0.217)
STORE 0.0000 TO r,g,b && 0000精度
HPDF_Page_GetRGBFill_VFP(npage,@r,@g,@b)
?r,g,b
libhpdf.rar
(181.98 KB)
DECLARE integer HPDF_Page_GetRGBFill In libhpdf.dll integer
DECLARE HPDF_Page_GetRGBFill_VFP In libhpdf.dll integer npage,single @R,single @G,single @B
DECLARE HPDF_Page_GetRGBStroke_VFP In libhpdf.dll integer npage,single @R,single @G,single @B
DECLARE HPDF_Page_GetCMYKFill_VFP In libhpdf.dll integer npage,single @C,single @M,single @Y,single @K
DECLARE HPDF_Page_GetCMYKStroke_VFP In libhpdf.dll integer npage,single @C,single @M,single @Y,single @K
DECLARE HPDF_Page_GetTextMatrix_VFP In libhpdf.dll integer npage,single @A,single @B,single @C,single @D,single @X,single @Y
前面代码略....
以这个函数为例:
HPDF_Page_SetRGBFill(npage, 1.00, 0.5334, 0.217)
STORE 0.0000 TO r,g,b && 0000精度
HPDF_Page_GetRGBFill_VFP(npage,@r,@g,@b)
?r,g,b
[此贴子已经被作者于2023-10-24 00:08编辑过]