/*Add an outline to Sprites and
print them to the cmd line.  They
can be cut/pasted from there.
*/
<1>/* Graphics Not Rendered in HTML */


<2>/* Graphics Not Rendered in HTML */



<3>/* Graphics Not Rendered in HTML */



<4>/* Graphics Not Rendered in HTML */



<5>/* Graphics Not Rendered in HTML */



<6>/* Graphics Not Rendered in HTML */



<7>/* Graphics Not Rendered in HTML */


<8>/* Graphics Not Rendered in HTML */



<9>/* Graphics Not Rendered in HTML */



<10>/* Graphics Not Rendered in HTML */



<11>/* Graphics Not Rendered in HTML */



<12>/* Graphics Not Rendered in HTML */



#define NUM     12

U8 *in_img[NUM]={<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>};

U0 OutLine()
{
  I64 n,minx,maxx,miny,maxy,w,h,i,j,k,c;
  U8 *out_img;
  CDC *dc;
  for (n=0;n<NUM;n++) {
    SpriteExtents(in_img[n],&minx,&maxx,&miny,&maxy);
    w=maxx-minx+1+2;
    h=maxy-miny+1+2;
    dc=DCNew(w,h);
    dc->color=TRANSPARENT;
    GrRect(dc,0,0,w,h);
    Sprite3(dc,-minx+1,-miny+1,0,in_img[n]);

    for (i=0;i<h;i++)
      for (j=0;j<w;j++)
        if (GrPeek(dc,j,i)==TRANSPARENT) {
          for (k=0;k<8;k++) {
            c=GrPeek(dc,j+gr_x_offsets[k],i+gr_y_offsets[k]);
            if (c!=-1 && c!=BLACK && c!=TRANSPARENT) {
              dc->color=BLACK;
              GrPlot(dc,j,i);
              break;
            }
          }
        }

    out_img=DC2Sprite(dc);
    '\n';
    Sprite(out_img);
    '\n\n\n\n';

    DCDel(dc);
    Free(out_img);
  }
}

OutLine;