@kv  0.0.4
Library for graph problems in C and Python
drawing.h
1 
18 #if !defined(AT_IMGPROC_H_INSIDE)
19 #error "Only <at/imgproc.h> can be included directly."
20 #endif
21 #ifndef AT_DRAWING_H
22 #define AT_DRAWING_H
23 
24 #include <at/core.h>
25 AT_BEGIN_DECLS
26 
37 void
38 at_arrayu8_draw_line(AtArrayU8* array,
39  AtVec2I16 p0,
40  AtVec2I16 p1,
41  AtVec4U8 color,
42  uint8_t thickness,
43  AtAdjacency adjacency,
44  uint8_t shift);
45 
52 void
53 at_arrayu8_clip_line(AtVec2U16 size,
54  AtVec2U16 p0,
55  AtVec2U16 p1);
66 void
67 at_arrayu8_draw_circle(AtArrayU8* array,
68  AtVec2I16 center,
69  uint16_t radius,
70  AtVec4U8 color,
71  uint8_t thickness,
72  AtAdjacency adjacency,
73  uint8_t shift);
74 
84 void
85 at_arrayu8_draw_rectangle(AtArrayU8* array,
86  AtVec4U16 rect,
87  AtVec4U8 color,
88  uint8_t thickness,
89  AtAdjacency adjacency,
90  uint8_t shift);
91 
103 uint16_t
104 at_ellipse_to_poly(AtVec2I16 center,
105  AtVec2I16 axes,
106  uint16_t angle,
107  uint16_t arc_start,
108  uint16_t arc_end,
109  uint8_t delta,
110  AtVec4U16** pts);
111 
112 
113 
114 AT_END_DECLS
115 
116 #endif