fs_renderer_r.h
Go to the documentation of this file.
1 
24 #ifndef _FSCRT_RENDERER_R_H_
25 #define _FSCRT_RENDERER_R_H_
26 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
55 /*******************************************************************************/
56 /* Base definitions for renderer */
57 /*******************************************************************************/
58 #ifndef _FSCRT_DEF_HANDLE_RENDERER_
59 #define _FSCRT_DEF_HANDLE_RENDERER_
60 
62 FSCRT_DEFINEHANDLE(FSCRT_RENDERER);
63 
64 #endif /* _FSCRT_DEF_HANDLE_RENDERER_ */
65 
66 #ifndef _FSCRT_DEF_MACRO_RENDERERFLAG_
67 #define _FSCRT_DEF_MACRO_RENDERERFLAG_
68 
75 #define FSCRT_RENDERERFLAG_LCDTEXT 0x01
76 
77 #define FSCRT_RENDERERFLAG_BGRSTRIPE 0x02
78 
79 #define FSCRT_RENDERERFLAG_USEANTIALIAS 0x04
80 
81 #define FSCRT_RENDERERFLAG_GRAYSCALE 0x08
82 
83 #define FSCRT_RENDERERFLAG_NONATIVETEXT 0x10
84 
85 #define FSCRT_RENDERERFLAG_TEXTGAMMA 0x20
86 
88 #endif /* _FSCRT_DEF_MACRO_RENDERERFLAG_ */
89 
90 #ifndef _FSCRT_DEF_MACRO_BLENDMODE_
91 #define _FSCRT_DEF_MACRO_BLENDMODE_
92 
102 #define FSCRT_RENDERERBLEND_NORMAL 0
103 
109 #define FSCRT_RENDERERBLEND_MULTIPLY 1
110 
116 #define FSCRT_RENDERERBLEND_SCREEN 2
117 
123 #define FSCRT_RENDERERBLEND_OVERLAY 3
124 
130 #define FSCRT_RENDERERBLEND_DARKEN 4
131 
137 #define FSCRT_RENDERERBLEND_LIGHTEN 5
138 
147 #define FSCRT_RENDERERBLEND_COLORDODGE 6
148 
157 #define FSCRT_RENDERERBLEND_COLORBURN 7
158 
166 #define FSCRT_RENDERERBLEND_HARDLIGHT 8
167 
178 #define FSCRT_RENDERERBLEND_SOFTLIGHT 9
179 
185 #define FSCRT_RENDERERBLEND_DIFFERENCE 10
186 
192 #define FSCRT_RENDERERBLEND_EXCLUSION 11
193 
199 #define FSCRT_RENDERERBLEND_HUE 21
200 
206 #define FSCRT_RENDERERBLEND_SATURATION 22
207 
213 #define FSCRT_RENDERERBLEND_COLOR 23
214 
220 #define FSCRT_RENDERERBLEND_LUMINOSITY 24
221 
223 #endif /* _FSCRT_DEF_MACRO_BLENDMODE_ */
224 
225 
226 #ifndef _FSCRT_DEF_MACRO_LINECAP_
227 #define _FSCRT_DEF_MACRO_LINECAP_
228 
238 #define FSCRT_LINECAP_BUTT 0
239 
244 #define FSCRT_LINECAP_ROUND 1
245 
250 #define FSCRT_LINECAP_SQUARE 2
251 
253 #endif /* _FSCRT_DEF_MACRO_LINECAP_ */
254 
255 #ifndef _FSCRT_DEF_MACRO_LINEJOIN_
256 #define _FSCRT_DEF_MACRO_LINEJOIN_
257 
267 #define FSCRT_LINEJOIN_MITER 0
268 
275 #define FSCRT_LINEJOIN_ROUND 1
276 
281 #define FSCRT_LINEJOIN_BEVEL 2
282 
284 #endif /* _FSCRT_DEF_MACRO_LINEJOIN_ */
285 
286 /*******************************************************************************/
287 /* Renderer */
288 /*******************************************************************************/
319 FS_RESULT FSCRT_Renderer_CreateOnBitmap(FSCRT_BITMAP bitmap, FSCRT_RENDERER* renderer);
320 
341 FS_RESULT FSCRT_Renderer_Release(FSCRT_RENDERER renderer);
342 
363 FS_RESULT FSCRT_Renderer_SetFlags(FSCRT_RENDERER renderer, FS_DWORD flags);
364 
386 FS_RESULT FSCRT_Renderer_SetDitherBits(FSCRT_RENDERER renderer, FS_INT32 bits);
387 
406 
427 FS_RESULT FSCRT_Renderer_SetClipRect(FSCRT_RENDERER renderer, const FSCRT_RECT* clipRect);
428 
454 FS_RESULT FSCRT_Renderer_DrawBitmap(FSCRT_RENDERER renderer, FS_INT32 dstLeft, FS_INT32 dstTop, FSCRT_BITMAP srcBitmap, const FSCRT_RECT* srcRect);
455 
456 #ifdef __cplusplus
457 };
458 #endif
459  /* group FSRENDERER */
461 
462 #endif /* _FSCRT_RENDERER_R_H_ */
float FS_FLOAT
32-bit floating-point number, single precision.
Definition: fs_base_r.h:148
FS_RESULT FSCRT_Renderer_SetFlags(FSCRT_RENDERER renderer, FS_DWORD flags)
Set flags of a renderer.
FS_RESULT FSCRT_Renderer_SetGamma(FS_FLOAT gamma)
Set gamma value for text rendering.
Structure for rectangle, in integer.
Definition: fs_base_r.h:2056
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
FS_RESULT FSCRT_Renderer_CreateOnBitmap(FSCRT_BITMAP bitmap, FSCRT_RENDERER *renderer)
Create a renderer on a bitmap object.
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
FS_RESULT FSCRT_Renderer_Release(FSCRT_RENDERER renderer)
Release a given renderer object.
FS_RESULT FSCRT_Renderer_SetClipRect(FSCRT_RENDERER renderer, const FSCRT_RECT *clipRect)
Set the current clipping rectangle into a renderer.
FS_RESULT FSCRT_Renderer_SetDitherBits(FSCRT_RENDERER renderer, FS_INT32 bits)
Set bitmap dither bits of a renderer, support for 8bpp bitmap device.
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160
FS_RESULT FSCRT_Renderer_DrawBitmap(FSCRT_RENDERER renderer, FS_INT32 dstLeft, FS_INT32 dstTop, FSCRT_BITMAP srcBitmap, const FSCRT_RECT *srcRect)
Render a bitmap object.

Foxit Corporation