[lib_netmap] -Fix: map_j2nets: call two-net postproc at the end of mapping a 2net...
[pcb-rnd-mirror.git] / work / gpstroke / cap.c
blob51b08d2fa951acbe7cf631092ccb701f1daebb97
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <math.h>
4 #include <string.h>
5 #include <time.h>
6 #include "c24lib/image/image.h"
7 #include "c24lib/image/draw.h"
8 #include "c24lib/image/pnm.h"
10 #include "pcb_draw.h"
12 static inline void pcb_clear(image_t *img)
14 int n;
15 pixel_t *p = img->pixmap;
16 for(n = 0; n < img->sx * img->sy; n++,p++) {
17 *p = pixel_white;
22 int main(int argc, char *argv[])
24 image_t *img = image_new(200, 200);
25 pcb_clear(img);
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");
32 return 0;