6 #include "c24lib/image/image.h"
7 #include "c24lib/image/draw.h"
8 #include "c24lib/image/pnm.h"
12 static inline void pcb_clear(image_t
*img
)
15 pixel_t
*p
= img
->pixmap
;
16 for(n
= 0; n
< img
->sx
* img
->sy
; n
++,p
++) {
22 int main(int argc
, char *argv
[])
24 image_t
*img
= image_new(200, 200);
27 draw_pcb_fillcr(img
, 50, 20, 6);
29 draw_pcb_line(img
, 10, 10, 100, 140, 12);
30 draw_pcb_line(img
, 100, 10, 10, 140, 12);
31 pnm_save(img
, "img.pnm");