fs_psi_w.h
Go to the documentation of this file.
1 
26 #ifndef _FSCRT_PSI_W_H_
27 #define _FSCRT_PSI_W_H_
28 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 /*******************************************************************************/
57 /* Base definitions for PSI */
58 /*******************************************************************************/
59 #ifndef _FSCRT_DEF_HANDLE_PSI_
60 #define _FSCRT_DEF_HANDLE_PSI_
61 
63 FSCRT_DEFINEHANDLE(FSCRT_PSI);
64 
65 #endif /* _FSCRT_DEF_HANDLE_PSI_ */
66 
67 #ifndef _FSCRT_DEF_MACRO_PSI_PT_
68 #define _FSCRT_DEF_MACRO_PSI_PT_
69 
77 #define FSCRT_PSI_PT_LINETO FSCRT_POINTTYPE_LINETO
78 
79 #define FSCRT_PSI_PT_MOVETO FSCRT_POINTTYPE_MOVETO
80 
81 #define FSCRT_PSI_PT_ENDPATH 0x08
82 
84 #endif /* _FSCRT_DEF_HANDLE_PSI_ */
85 
86 /***********************************************************************/
87 /* PSI operations */
88 /***********************************************************************/
111 FS_RESULT FSCRT_PSI_Create(FS_BOOL simulate, FSCRT_PSI* psi);
112 
134 FS_RESULT FSCRT_PSI_Release(FSCRT_PSI psi);
135 
159 FS_RESULT FSCRT_PSI_InitCanvas(FSCRT_PSI psi, FS_FLOAT width, FS_FLOAT height);
160 
181 FS_RESULT FSCRT_PSI_SetInkColor(FSCRT_PSI psi, FS_ARGB color);
182 
203 FS_RESULT FSCRT_PSI_SetInkDiameter(FSCRT_PSI psi, FS_INT32 diameter);
204 
225 FS_RESULT FSCRT_PSI_SetOpacity(FSCRT_PSI psi, FS_FLOAT opacity);
226 
246 FS_RESULT FSCRT_PSI_GetContentsRect(FSCRT_PSI psi, FSCRT_RECTF* psiRect);
247 
273 FS_RESULT FSCRT_PSI_AddPoint(FSCRT_PSI psi, FS_FLOAT x, FS_FLOAT y, FS_FLOAT pressure, FS_DWORD pointType);
274 
305 FS_RESULT FSCRT_PSI_Render(FSCRT_PSI psi, FSCRT_RENDERER renderer, FS_INT32 xDes, FS_INT32 yDes,
306  FS_INT32 width, FS_INT32 height, FS_FLOAT xSrc, FS_FLOAT ySrc);
307 
308 /***********************************************************************/
309 /* PSI annotation */
310 /***********************************************************************/
338 FS_RESULT FSCRT_PSI_ConvertToPDFAnnot(FSCRT_PSI psi, const FSCRT_RECTF* psiRect,
339  FSCRT_PAGE pdfPage, const FSCRT_RECTF* annotRect, FSCRT_ANNOT* annot);
340 
341 #ifdef __cplusplus
342 };
343 #endif
344  /* group FSPSI */
346 
347 #endif /* _FSCRT_PSI_W_H_ */
Structure for rectangle, in float.
Definition: fs_base_r.h:2078
FS_RESULT FSCRT_PSI_ConvertToPDFAnnot(FSCRT_PSI psi, const FSCRT_RECTF *psiRect, FSCRT_PAGE pdfPage, const FSCRT_RECTF *annotRect, FSCRT_ANNOT *annot)
Convert a pressure sensitive ink object to a PDF annotation.
float FS_FLOAT
32-bit floating-point number, single precision.
Definition: fs_base_r.h:148
FS_RESULT FSCRT_PSI_AddPoint(FSCRT_PSI psi, FS_FLOAT x, FS_FLOAT y, FS_FLOAT pressure, FS_DWORD pointType)
Add a point to a pressure sensitive ink object.
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
FS_RESULT FSCRT_PSI_Release(FSCRT_PSI psi)
Destroy a pressure sensitive ink object.
FS_RESULT FSCRT_PSI_GetContentsRect(FSCRT_PSI psi, FSCRT_RECTF *psiRect)
Get contents rectangle of a pressure sensitive ink object.
FS_RESULT FSCRT_PSI_InitCanvas(FSCRT_PSI psi, FS_FLOAT width, FS_FLOAT height)
Initialize a canvas for pressure sensitive ink.
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
FS_RESULT FSCRT_PSI_Render(FSCRT_PSI psi, FSCRT_RENDERER renderer, FS_INT32 xDes, FS_INT32 yDes, FS_INT32 width, FS_INT32 height, FS_FLOAT xSrc, FS_FLOAT ySrc)
Render a pressure sensitive ink object.
unsigned int FS_ARGB
ARGB color type, 32 bits, ((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_base_r.h:145
FS_RESULT FSCRT_PSI_SetInkDiameter(FSCRT_PSI psi, FS_INT32 diameter)
Set ink diameter of a pressure sensitive ink object.
FS_RESULT FSCRT_PSI_SetOpacity(FSCRT_PSI psi, FS_FLOAT opacity)
Set ink opacity of a pressure sensitive ink object.
FS_RESULT FSCRT_PSI_Create(FS_BOOL simulate, FSCRT_PSI *psi)
Create a pressure sensitive ink object.
FS_RESULT FSCRT_PSI_SetInkColor(FSCRT_PSI psi, FS_ARGB color)
Set ink color of a pressure sensitive ink object.
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160

Foxit Corporation