Rev 18132 | Rev 18142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18132 | Rev 18140 | ||
---|---|---|---|
Line 460... | Line 460... | ||
460 | { |
460 | { |
461 | int x1,y1,x2,y2; |
461 | int x1,y1,x2,y2; |
462 | scale(pm->pd,pm->p,2); |
462 | scale(pm->pd,pm->p,2); |
463 | x1=min(pm->p[0],pm->p[2]); x2=max(pm->p[0],pm->p[2]); |
463 | x1=min(pm->p[0],pm->p[2]); x2=max(pm->p[0],pm->p[2]); |
464 | y1=min(pm->p[1],pm->p[3]); y2=max(pm->p[1],pm->p[3]); |
464 | y1=min(pm->p[1],pm->p[3]); y2=max(pm->p[1],pm->p[3]); |
- | 465 | if(pm->fill!=0){ |
|
- | 466 | if(pm->fill==-1 || pm->fill==2){ |
|
- | 467 | myDashedLine(image,x1,y1,x1,y2,pm->color[0]); |
|
- | 468 | myDashedLine(image,x1,y2,x2,y2,pm->color[0]); |
|
- | 469 | myDashedLine(image,x2,y2,x2,y1,pm->color[0]); |
|
- | 470 | myDashedLine(image,x2,y1,x1,y1,pm->color[0]); |
|
- | 471 | } |
|
465 | if(pm->fill==1 || pm->fill==2) |
472 | if(pm->fill==1 || pm->fill==2) |
466 | gdImageFilledRectangle(image,x1,y1,x2,y2,pm->color[0]); |
473 | gdImageFilledRectangle(image,x1,y1,x2,y2,pm->color[0]); |
- | 474 | } |
|
467 | else |
475 | else |
468 | gdImageRectangle(image,x1,y1,x2,y2,pm->color[0]); |
476 | gdImageRectangle(image,x1,y1,x2,y2,pm->color[0]); |
469 | if(tikz_file) |
477 | if(tikz_file) |
470 | fprintf(tikz_file, |
478 | fprintf(tikz_file, |
471 | "\\draw\[%s] (%i,%i) rectangle (%i,%i);\n", |
479 | "\\draw\[%s] (%i,%i) rectangle (%i,%i);\n", |