Finished moving and cleaning templates from .py to .t
[gfxprim.git] / doc / filters.txt
blobd741abb848aa0b4b6e27071f9dec808adaab5080
1 Context filters
2 ---------------
4 Pixel filters for 'GP_Context'. The context filter is basially an function that modifies context somehow (may even allocate new context to store result).
6 Rotation
7 ~~~~~~~~
9 [source,c]
10 -------------------------------------------------------------------------------
11 #include <GP_Filters.h>
13 GP_RetCode GP_MirrorH(GP_Context *context);
14 -------------------------------------------------------------------------------
16 Mirrors context pixels horizontaly and updates the context metadata.
18 [source,c]
19 -------------------------------------------------------------------------------
20 #include <GP_Filters.h>
22 GP_RetCode GP_MirrorV(GP_Context *context);
23 -------------------------------------------------------------------------------
25 Mirrors context pixels verticaly and updates the context metadata.
27 [source,c]
28 -------------------------------------------------------------------------------
29 #include <GP_Filters.h>
31 GP_RetCode GP_RotateCW(GP_Context *context);
32 -------------------------------------------------------------------------------
34 Rotates context clock wise and updates the context metadata.
36 [source,c]
37 -------------------------------------------------------------------------------
38 #include <GP_Filters.h>
40 GP_RetCode GP_RotateCCW(GP_Context *context);
41 -------------------------------------------------------------------------------
43 Rotates context counter clock wise and updates the context metadata.