- m.tx = (int)(p1.x*20);
- m.ty = (int)(p1.y*20);
-
- /* shape */
- myshapeid = ++i->currentswfid;
- i->tag = swf_InsertTag(i->tag,ST_DEFINESHAPE);
- swf_ShapeNew(&i->shape);
- //lsid = ShapeAddLineStyle(shape,linewidth,&obj->strokergb);
- //fsid = ShapeAddSolidFillStyle(shape,&obj->fillrgb);
- fsid = swf_ShapeAddBitmapFillStyle(i->shape,&m,bitid,1);
- swf_SetU16(i->tag, myshapeid);
- r.xmin = (int)(xmin*20);
- r.ymin = (int)(ymin*20);
- r.xmax = (int)(xmax*20);
- r.ymax = (int)(ymax*20);
- swf_SetRect(i->tag,&r);
- swf_SetShapeStyles(i->tag,i->shape);
- swf_ShapeCountBits(i->shape,NULL,NULL);
- swf_SetShapeBits(i->tag,i->shape);
- swf_ShapeSetAll(i->tag,i->shape,/*x*/0,/*y*/0,lsid,fsid,0);
- i->swflastx = i->swflasty = 0;
- moveto(obj, i->tag, p1);
- lineto(obj, i->tag, p2);
- lineto(obj, i->tag, p3);
- lineto(obj, i->tag, p4);
- lineto(obj, i->tag, p1);
- /*
- ShapeMoveTo (tag, shape, (int)(x1*20),(int)(y1*20));
- ShapeSetLine (tag, shape, (int)(x1*20);
- ShapeSetLine (tag, shape, x*20,0);
- ShapeSetLine (tag, shape, 0,-y*20);
- ShapeSetLine (tag, shape, -x*20,0);*/
- swf_ShapeSetEnd(i->tag);